help with go dep

149 views
Skip to first unread message

andrewc...@gmail.com

unread,
Oct 18, 2017, 11:21:40 PM10/18/17
to golang-nuts

$ dep version
dep:
 version     : devel
 build date  : 
 git hash    : 
 go version  : devel +7b9d15d566 Wed Oct 18 21:45:30 2017 +0000
 go compiler : gc
 platform    : linux/amd64

$ dep init
No versions of github.com/golang/sys met constraints:
        master: Could not introduce github.com/golang/sys@master, as its subpackage github.com/golang/sys/unix does not contain usable Go code (*pkgtree.NonCanonicalImportRoot).. (Package is required by (root).)


Not sure what this means, is this a problem with the dep tool? or a problem with the syscall package?

Dave Cheney

unread,
Oct 18, 2017, 11:34:49 PM10/18/17
to golang-nuts
You must import the package as golang.org/x/sys

andrewc...@gmail.com

unread,
Oct 18, 2017, 11:57:25 PM10/18/17
to golang-nuts
Thanks dave! The Go community is amazing.
Reply all
Reply to author
Forward
0 new messages