File: reproducible.patch

package info (click to toggle)
node-axios 1.12.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,828 kB
  • sloc: javascript: 13,614; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: make build reproducible
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-04-09

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -59,7 +59,7 @@
 };
 
 export default async () => {
-  const year = new Date().getFullYear();
+  const year = new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime()).getFullYear();
   const banner = `/*! Axios v${lib.version} Copyright (c) ${year} ${lib.author} and contributors */`;
 
   return [