Skip to content

[backport staging-24.11] buildGoModule: fix GO_NO_VENDOR_CHECKS for v1.23+#373194

Merged
katexochen merged 1 commit intoNixOS:staging-24.11from
katexochen:backport-372367-to-staging-24.11
Jan 13, 2025
Merged

[backport staging-24.11] buildGoModule: fix GO_NO_VENDOR_CHECKS for v1.23+#373194
katexochen merged 1 commit intoNixOS:staging-24.11from
katexochen:backport-372367-to-staging-24.11

Conversation

@katexochen
Copy link
Contributor

There was an additional check added for vendor/modules.txt when loading packages, see
golang/go@38ee0c7#diff-61fb6e44eac25bd4d6a8a64b3f38ee8a41faaefd1ef481170a011ecfc0f7c76bR344 The new version of the patch tries to also disable these checks.

Signed-off-by: Paul Meyer [email protected]
(cherry picked from commit 75dfe81)

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.

There was an additional check added for vendor/modules.txt
when loading packages, see
golang/go@38ee0c7#diff-61fb6e44eac25bd4d6a8a64b3f38ee8a41faaefd1ef481170a011ecfc0f7c76bR344
The new version of the patch tries to also disable these checks.

Signed-off-by: Paul Meyer <[email protected]>
(cherry picked from commit 75dfe81)
@github-actions github-actions bot added the 6.topic: golang Go is a high-level general purpose programming language that is statically typed and compiled. label Jan 12, 2025
@nix-owners nix-owners bot requested review from Mic92, kalbasit and zowoq January 12, 2025 14:05
@lafrenierejm lafrenierejm added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 13, 2025
@lafrenierejm lafrenierejm added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jan 13, 2025
@katexochen katexochen merged commit 0f7b83c into NixOS:staging-24.11 Jan 13, 2025
24 of 27 checks passed
@katexochen katexochen deleted the backport-372367-to-staging-24.11 branch January 13, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: golang Go is a high-level general purpose programming language that is statically typed and compiled. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants