Skip to content

tmsu: migrate to buildGoModule#318316

Merged
Mic92 merged 2 commits intoNixOS:masterfrom
luftmensch-luftmensch:tmsu_update
Jun 11, 2024
Merged

tmsu: migrate to buildGoModule#318316
Mic92 merged 2 commits intoNixOS:masterfrom
luftmensch-luftmensch:tmsu_update

Conversation

@luftmensch-luftmensch
Copy link
Contributor

Description of changes

Migrating to buildGoModule so buildGoPackage can be deprecated as cited in #318069

Updated also location of the package to reflect the newest standard

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

@katexochen katexochen mentioned this pull request Jun 8, 2024
35 tasks
@ofborg ofborg bot requested a review from pSub June 8, 2024 17:43
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 8, 2024
Copy link
Member

@isabelroses isabelroses left a comment

Choose a reason for hiding this comment

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

You should probaly make the move to pkgs/by-name as a separate commit

@luftmensch-luftmensch
Copy link
Contributor Author

You should probaly make the move to pkgs/by-name as a separate commit

I've always done like that. There is some motivation for doing so?

@isabelroses
Copy link
Member

You should probaly make the move to pkgs/by-name as a separate commit

I've always done like that. There is some motivation for doing so?

Shouldn't really matter imo. Just something that a few others have pointed out to me.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/1016/136

@isabelroses isabelroses added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 10, 2024
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/1732

@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 10, 2024
@katexochen
Copy link
Contributor

You should probaly make the move to pkgs/by-name as a separate commit

I've always done like that. There is some motivation for doing so?

The reason is that the way it is currently done, git won't recognize the rename and will handle package.nix as a new file. Following, history for that isn't connected to the history of the old file anymore. You can check this here: https://github.com/NixOS/nixpkgs/commits/f23f296e040706920d05aa1b7eb342014feb2cd7/pkgs/by-name/tm/tmsu/package.nix

If the rename is recognized, github will show the file rename as part of the history and will link to the history of the file before the rename.

@luftmensch-luftmensch
Copy link
Contributor Author

luftmensch-luftmensch commented Jun 11, 2024

You should probaly make the move to pkgs/by-name as a separate commit

I've always done like that. There is some motivation for doing so?

The reason is that the way it is currently done, git won't recognize the rename and will handle package.nix as a new file. Following, history for that isn't connected to the history of the old file anymore. You can check this here: https://github.com/NixOS/nixpkgs/commits/f23f296e040706920d05aa1b7eb342014feb2cd7/pkgs/by-name/tm/tmsu/package.nix

If the rename is recognized, github will show the file rename as part of the history and will link to the history of the file before the rename.

Should I ditch the current worktree and make two different commits in order to handle this flow?

EDIT: Thanks @Mic92!

@Mic92 Mic92 force-pushed the tmsu_update branch 2 times, most recently from a8df5a0 to dfd299c Compare June 11, 2024 07:38
@katexochen
Copy link
Contributor

@Mic92 there is a typo in the commit message: s/moe/move/

@Mic92 Mic92 merged commit a8fc2bb into NixOS:master Jun 11, 2024
@luftmensch-luftmensch luftmensch-luftmensch deleted the tmsu_update branch June 11, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants