Skip to content

Mark go packages which vendor directory can't be recreated broken#245159

Closed
SuperSandro2000 wants to merge 3 commits intoNixOS:masterfrom
SuperSandro2000:go-vendor-maintenance
Closed

Mark go packages which vendor directory can't be recreated broken#245159
SuperSandro2000 wants to merge 3 commits intoNixOS:masterfrom
SuperSandro2000:go-vendor-maintenance

Conversation

@SuperSandro2000
Copy link
Member

Description of changes

I don't really want to merge this as is but I hope I can get some attention by the maintainers to help fix the issues in these packages.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@SuperSandro2000 SuperSandro2000 changed the title Mark go packages which vendor directory can't be created broken Mark go packages which vendor directory can't be recreated broken Jul 24, 2023
@SuperSandro2000 SuperSandro2000 force-pushed the go-vendor-maintenance branch from 5b87a6b to f9a39d1 Compare July 24, 2023 09:34
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 24, 2023
license = licenses.bsd3;
maintainers = with maintainers; [ Madouura muscaln ];
# vendor can't be recreated and fails with:
# error: illegal path references in fixed-output derivation '/nix/store/......-tinygo-0.26.0-go-modules.drv'
Copy link
Member

Choose a reason for hiding this comment

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

@SuperSandro2000 can you explain how you got this error ?

I recently tried updating tinygo and I kept getting vendor hash mismatch, so maybe its related

Copy link
Member Author

Choose a reason for hiding this comment

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

just run the following nix-build -A tinygo.go-modules --check

Copy link
Member

Choose a reason for hiding this comment

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

@SuperSandro2000 thanks for your hint, helped me to track down the problem #245445

description = "Go compiler for small places";
license = licenses.bsd3;
maintainers = with maintainers; [ Madouura muscaln ];
# vendor can't be recreated and fails with:
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
# vendor can't be recreated and fails with:
# vendor can't be recreated by running `nix-build -A tinygo.go-modules --check` and fails with:

@kirillrdy
Copy link
Member

@SuperSandro2000 I've created PRs that should resolve reproducible vendor for those packages

@SuperSandro2000
Copy link
Member Author

now we only need to remember to close this one, if they are all merged

@SuperSandro2000 SuperSandro2000 deleted the go-vendor-maintenance branch August 26, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants