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

taskwarrior3: fix version and add versionCheckHook test #368520

Merged
merged 3 commits into from
Dec 28, 2024

Conversation

SigmaSquadron
Copy link
Contributor

Fixes #368467

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

versionCheckHook
];

versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
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.

Copy link
Contributor

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]>
Comment on lines +29 to +30
rev = "v${finalAttrs.version}";
hash = "sha256-aKDwRCJ1yopRdsPxnHhgOpSho1i8/dcAurI+XhpSbn4=";
Copy link
Contributor

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}";
Copy link
Contributor

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.

@doronbehar doronbehar merged commit 711b3e5 into NixOS:master Dec 28, 2024
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

taskwarrior3: 3.3.0 reports version as 3.2.0 & misses news
2 participants