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
corerad: 0.2.6 -> 0.2.7 #91458
corerad: 0.2.6 -> 0.2.7 #91458
Conversation
Signed-off-by: Matt Layher <mdlayher@gmail.com>
Signed-off-by: Matt Layher <mdlayher@gmail.com>
@GrahamcOfBorg test corerad |
/marvin opt-in |
Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here. |
/status needs_review |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Signed-off-by: Matt Layher <mdlayher@gmail.com>
|
||
buildFlagsArray = '' | ||
-ldflags= | ||
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1591474872 | ||
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1593050100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest removing/disabling this or setting it to SOURCE_DATE_EPOCH
as if anyone else (human or bot) ever bumps this package I doubt it will be noticed or updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is something I've been meaning to automate but I haven't actually figured out how yet.
However, I did just find https://nixos.org/nixpkgs/manual/#chap-stdenv:
set-source-date-epoch-to-latest.sh
This sets SOURCE_DATE_EPOCH to the modification time of the most recent file.
So perhaps I can figure out how to plumb this in. Should I do it in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, doesn't need to be done in this PR.
TBH, I wouldn't bother with trying to set a timestamp unless it's somehow necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found a method that seems to work. I previously added a file in the root of the git repository which is updated with the current tag's timestamp when I make a release. By reading this file in preBuild, I can automate the process. Let me know if this is alright.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work?
build.linkTimestamp=$(<.gittagtime)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does, thanks! Updated.
Signed-off-by: Matt Layher <mdlayher@gmail.com>
Any more thoughts @zowoq? Thanks for your time. |
Motivation for this change
New CoreRAD release, support for systemd readiness notification. See second commit for the unit change, and https://www.freedesktop.org/software/systemd/man/sd_notify.html#Description for documentation.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Binary builds, tests continue to pass.
/cc @jonringer @marsam per previous PRs (thank you again!)