buildGoPackage: include goDeps in nix-shell GOPATH#16297
buildGoPackage: include goDeps in nix-shell GOPATH#16297kamilchm wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
By analyzing the blame information on this pull request, we identified @wkennington, @ehmry and @lethalman to be potential reviewers |
|
I'm looking at the difference between this as #15490 and I don't understand the change. I didn't need the shell hook to add the dependencies to the |
|
I tested you version and it didn't create any link to dependencies sources when used with current master. This one worked and build proper |
|
i've been playing with this and for some dependencies it seems to work! if i want to use a lib which is not already listed in example1i noticed this:
example2it seems to ignore some dependencies from beucase there is never a failure for the above dependency request
|
|
@qknight I'm looking at nix code to see if I can generate and parse nix expressions easily from Go to replace JSON in |
|
@kamilchm @chris-martin @qknight -- this change works well for me on a recent nixpkgs checkout and fixes a regression introduced by #16017. Can we merge it, or is there additional required testing, documentation, or development work? |
|
This code is already included: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/go-modules/generic/default.nix#L183 |
Motivation for this change
nix-shell should works as development environment for Go packages
see https://gist.github.com/qknight/ec772db7ab484296c64af008de628d9e
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)