nix-community / gomod2nix

Convert applications using Go modules to Nix expressions [maintainer=@adisbladis]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No golang in dev environment/shell

wezzle opened this issue · comments

Describe the bug
Starting a shell does not provide any go binary.

To Reproduce
Follow the steps in: https://github.com/tweag/gomod2nix/blob/master/docs/getting-started.md

mkdir test && cd test
nix flake init -t github:tweag/gomod2nix#app
nix develop
# Wait for shell
which go

Returns: which: no go in (...)

Expected behavior
I would expect mkGoEnv to give me the golang binary with the correct version from my go.mod file.

Environment

  • Linux
  • Version of the code: master

Awesome! Thanks for the fix.