| What workflow do you typically use to develop in a nix shell? I have some minor trouble with the dependencies:
If I just go in a dev shell (i.e. with nix develop) and run go build it will fail because it expects the dependencies in vendor.
- I can run
go mod vendor and then things work.
- Or I can run
runPhase configurePhase and get the vendor directory from nix, that also works.
The other minor issue is that I need to change the vendorHash every time I change a dependency, or I'd get a stale ~vendor~ directory and nix build fails (which took me a while to figure out, because I was doing go mod vendor to develop in my shell.
From this experience, it seems that running the configure phase is a better approach, but it contradicts a bit what me and @jrick discussed a few days ago, from which I understood (perhaps wrongly) that using go tools directly was preferred.
Curious about what other people are doing :)
|