Source: cadvisor Version: 0.25.0+dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that cadvisor could not be built reproducibly as it encodes the current year into a copyright header. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/build/assets.sh b/build/assets.sh index 0eff872..2cbf903 100755 --- a/build/assets.sh +++ b/build/assets.sh @@ -35,7 +35,7 @@ build_asset () { local output_path=$2 local input_dirs=${@:3} local tmp_output=$(mktemp) - local year=$(date +%Y) + local year="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)" go-bindata -nometadata -o $output_path -pkg $package $input_dirs cat build/boilerplate/boilerplate.go.txt | sed "s/YEAR/$year/" > "${tmp_output}"
_______________________________________________ Pkg-go-maintainers mailing list Pkg-go-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers