Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightning-terminal: ensure reproducible releases #852

Closed
wants to merge 2 commits into from

Conversation

ViktorTigerstrom
Copy link
Contributor

This update modifies the release.sh script to ensure that release files are reproducible, generating identical hashes when rebuilt. Previously, the script did not set fixed timestamps for the files, resulting in different hashes across rebuilds.

Additionally, the release.sh script has been updated to align more closely with the behavior of the lnd release script, ensuring consistency and coherence across repositories for users. Let me know if you think it's unnecessary for us to mimic those behaviour in litd :)

This update modifies the release.sh script to ensure that release files
are reproducible, generating identical hashes when rebuilt. Previously,
the script did not set fixed timestamps for the files, resulting in
different hashes across rebuilds.

Additionally, the release.sh script has been updated to align more
closely with the behavior of the lnd release script, ensuring
consistency and coherence across repositories for users.
Comment on lines +155 to +158
# Add the hash of the packages too, then sort by the second column (name).
shasum -a 256 lightning-terminal-* vendor* >> "manifest-$tag.txt"
LC_ALL=C sort -k2 -o "manifest-$tag.txt" "manifest-$tag.txt"
cat "manifest-$tag.txt"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you think this is unnecessary for litd, but I figured we'd probably want to mimic the lnd behaviour as much as possible to be as coherent between the repos as possible.

@lightninglabs-deploy
Copy link

@dstadulis: review reminder
@GeorgeTsagk: review reminder

@guggero guggero requested review from guggero and removed request for dstadulis October 22, 2024 15:09
@guggero
Copy link
Member

guggero commented Oct 23, 2024

Replaced by #881.

@guggero guggero closed this Oct 23, 2024
@guggero guggero deleted the 2024-09-reproducible-releases branch November 25, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants