Re:Building Go Programs with Nix Flakes
by flicaflow on Wednesday December 14, 2022 @10:42AM
(#33985025)
but how does it react when go.mod and the toml get out of sync? For us this will just break on CI and requires then a commit with the updated vendorSha to be fixed. I would expect the same workflow from this approach?
[ Parent
| on HN ]
Re:Building Go Programs with Nix Flakes
by tadfisher on Wednesday December 14, 2022 @03:02PM
(#33989441)
The only reason they would get out of sync is if you updated dependency versions without also running gomod2nix. The benefit here is that you can do that without the intermediate step of first building the project and updating the hash after the build fails.