guix: warn SOURCE_DATE_EPOCH set in guix-codesign

Currently there is a warning for this in guix-build, but we also need
one in guix-codesign, otherwise the codesigned hashes are not
reproducible.

Move common functionality into prelude and call the function in both
guix actions.
This commit is contained in:
will committed 2025-07-27 21:51:39 +01:00
1 parent 75a5c8258e
commit 1bed0f734b
3 files changed
+27 -13

No files matched your search

+6
View File
@@ -67,6 +67,12 @@ EOF
exit 1
fi
################
# SOURCE_DATE_EPOCH should not unintentionally be set
################
check_source_date_epoch
################
# The codesignature git worktree should not be dirty
################