-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
taskwarrior3: fix version and add versionCheckHook test #368520
Conversation
Signed-off-by: Fernando Rodrigues <[email protected]>
…ismatches. Signed-off-by: Fernando Rodrigues <[email protected]>
versionCheckHook | ||
]; | ||
|
||
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; |
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.
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; | |
versionCheckProgram = "${placeholder "out"}/bin/task"; |
I remember someone somewhere saying that finalAttrs.meta.*
is a bad idea for some reason. I can't remember why, or if it's even a anti-pattern in the first place, but do let me know if this should be changed.
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 remember someone somewhere saying that
finalAttrs.meta.*
is a bad idea for some reason. I can't remember why, or if it's even a anti-pattern in the first place, but do let me know if this should be changed.
I too heard that said, and TBH I'm not very good at explaining why. I heard that though mostly about src
and pname
as the repo
argument, and here I think it is a bit different. I won't make this a blocker, as the rest of the PR is perfect.
Upstream links to the releases instead of the changelog file: https://taskwarrior.org/news/news.20241219/ Signed-off-by: Fernando Rodrigues <[email protected]>
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-aKDwRCJ1yopRdsPxnHhgOpSho1i8/dcAurI+XhpSbn4="; |
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.
Oh thanks! I counted on nix-update
to the job for me, even when the current version is "unstable".
versionCheckHook | ||
]; | ||
|
||
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; |
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 remember someone somewhere saying that
finalAttrs.meta.*
is a bad idea for some reason. I can't remember why, or if it's even a anti-pattern in the first place, but do let me know if this should be changed.
I too heard that said, and TBH I'm not very good at explaining why. I heard that though mostly about src
and pname
as the repo
argument, and here I think it is a bit different. I won't make this a blocker, as the rest of the PR is perfect.
Fixes #368467
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.