-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
ory: 0.3.4 -> v1.1.0 #403778
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
base: master
Are you sure you want to change the base?
ory: 0.3.4 -> v1.1.0 #403778
Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5451 |
|
pname = "ory"; | ||
version = "0.3.4"; | ||
version = "v1.1.0"; |
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 would really like to avoid the v prefix
ldflags = [ | ||
"-s" | ||
"-w" | ||
"-X github.com/ory/cli/buildinfo.Version=${finalAttrs.version}" |
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.
"-X github.com/ory/cli/buildinfo.Version=${finalAttrs.version}" | |
"-X github.com/ory/cli/buildinfo.Version=v${finalAttrs.version}" |
does this work? Anywhere else that could be patched, or is there some environment variable we could set?
tag = "v${version}"; | ||
hash = "sha256-q7+Fpttgx62GbKxCCiEDlX//e/pNO24e7KhhBeGRDH0="; | ||
tag = "v${finalAttrs.version}"; | ||
hash = "sha256-+Su2FIuCb2vpPW/OCOTzqQOZPpY9gGRbwylSepLh2hk="; |
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.
you have to reset the hash every time you make a change to the fetcher inputs to test it
Changes introduced
finalAttrs
instead ofrec
subPackages
ldflags
versionCheckHook
to check successful build(see below notes)updateScript
with lib
Notes for reviewers
version
is now using a leadingv
char because, without it, thecheckPhase
fails with the following error:I didn’t find another way than setting the derivation
version
field tov1.1.0
. This might not be needed after all (see item 2 below).checkFlags
. For some reason unknown to me, even if I provide the-skip
flag, tests are still run. Here is thecheckFlags
content and the build output (withNIX_DEBUG=1
):The
versionCheckHook
tester is used instead, to ensure the built binary is working.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.