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

Automated updates for buildGoModule packages #163

Merged
merged 1 commit into from
Mar 13, 2020

Conversation

bhipple
Copy link
Collaborator

@bhipple bhipple commented Mar 13, 2020

Having merged an update to make go packages passthru the modSha256 [1], we can
now have nixpkgs-update inspect it and make updates, just as it now does for
Rust packages as of [2].

As a slight detail, because the attribute is in passthru rather than actually
being available in the derivation, we just do the equivalent of
nix eval -f . <attrPath>.<attr> rather than going through the drvAttrs as before.

This version has been tested successfully with at least one go update [3], but
not thoroughly vetted. That said, it's essentially identical to the Rust
implementation that has been working well for some time now.

[1] NixOS/nixpkgs#82027
[2] #156
[3] NixOS/nixpkgs#82465

Having merged an update to make go packages passthru the `modSha256` [1], we can
now have `nixpkgs-update` inspect it and make updates, just as it now does for
Rust packages as of [2].

As a slight detail, because the attribute is in `passthru` rather than actually
being available in the derivation, we just do the equivalent of
`nix eval -f . <attrPath>.<attr>` rather than going through the `drvAttrs` as before.

This version has been tested successfully with at least one go update [3], but
not thoroughly vetted. That said, it's essentially identical to the Rust
implementation that has been working well for some time now.

[1] NixOS/nixpkgs#82027
[2] nix-community#156
[3] NixOS/nixpkgs#82465
@ryantm ryantm merged commit 321c8c5 into nix-community:master Mar 13, 2020
@bhipple bhipple deleted the feature/golang branch March 13, 2020 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants