kamilchm / go2nix

Reproducible builds and development environment for Go
MIT License
93 stars 17 forks source link

Gopath detection broken #52

Closed Profpatsch closed 7 years ago

Profpatsch commented 7 years ago
☆  katara in ~/code/work/nixcloud/nixcloud-backend/src/nixcloud/backend
○ → go2nix save
2017/03/10 14:12:23 Current dir /home/philip/code/work/nixcloud/nixcloud-backend/src/nixcloud/backend is outside of GOPATH(/home/philip/code/work/nixcloud/nixcloud-backend:/run/user/1000/tmp.3UWHIm33Uo-go1.6-nixcloud-0.0.1:/nix/store/j0r6j7s2hzi1hb0fj3kwy4gbgym34w2k-go-1.6.2/share/go:/nix/store/f06y099h32rvx9blgh84nlkp8qslchfw-go1.6-govers-20150109-3b5f175/share/go:/nix/store/zjqn56sq9vhc8s991932qk4g2jakkdng-go1.6-captcha-9e95214/share/go:/nix/store/pb12mhbbcs1wfv4mdrpgbn0q414wd16p-go1.6-gomailv2-5ceb8e6/share/go:/nix/store/2xql0m3ssmb3yxy23x77whyk9mwmqhga-go1.6-gocraft-web-054fd62/share/go:/nix/store/xp30akdnmbs7lrb9b7r3i69mqnay18cz-go1.6-gorm-84c6b46/share/go:/nix/store/374c3vnh1i1fvv5lmwmvl3yfs6k6qwyz-go1.6-inflection-3272df6/share/go:/nix/store/mw4wrf42nl9cqj0c5sckdvf2jy79q5dr-go1.6-pq-11fc39a/share/go:/nix/store/wjm0mp3n41va0by73p4jg3ip4yyqndlp-go1.6-crypto-7b85b09/share/go:/nix/store/2m1lkyb745rahxgv28hyq2qpnvlz1gg5-go1.6-go2nix-0.1.0/share/go:/nix/store/ldp0rdpr0ixskwkz81846pmqhacz2m0f-leaps). Can't get current package name

> Current dir /home/philip/code/work/nixcloud/nixcloud-backend/src/nixcloud/backend

> outside of GOPATH(/home/philip/code/work/nixcloud/nixcloud-backend:

I call bullshit.

kamilchm commented 7 years ago

Hi, could you check the version of go2nix and nixpkgs you're using? It could be the case fixed in https://github.com/kamilchm/go2nix/commit/33f1d2dbc6a8c22460dbaee18e9c1c259fa6586e

Profpatsch commented 7 years ago

Yes! I was using a completely outdated version of nixpkgs in that test, the new GOPATH check looks reasonable.