go get golang.org/x/crypto/ssh ??

3,892 views
Skip to first unread message

Blake Caldwell

unread,
Jan 15, 2015, 11:59:07 PM1/15/15
to golan...@googlegroups.com
I'm working on upgrading my dependencies. I've been using: "code.google.com/p/go.crypto/ssh", but notice now that the documentation shows "golang.org/x/crypto/ssh" (https://godoc.org/golang.org/x/crypto/ssh). 

However, if I try "go get golang.org/x/crypto/ssh", I get:


package golang.org/x/crypto/ssh: unrecognized import path "golang.org/x/crypto/ssh"

I know this is something simple... What am I missing?

Thanks!


Blake Caldwell

unread,
Jan 16, 2015, 12:03:39 AM1/16/15
to golan...@googlegroups.com
OH... was it just folded into the standard library with 1.4?

Dave Cheney

unread,
Jan 16, 2015, 12:12:03 AM1/16/15
to golan...@googlegroups.com
The sub repos were migrated to new import paths in preparation for the move to git.

https://groups.google.com/forum/#!msg/golang-nuts/eD8dh3T9yyA/l5Ail-xfMiAJ

Apart from that, little has changed.

minux

unread,
Jan 16, 2015, 12:41:35 AM1/16/15
to Blake Caldwell, golang-nuts
On Thu, Jan 15, 2015 at 11:59 PM, Blake Caldwell <bl...@fogcreek.com> wrote:
I'm working on upgrading my dependencies. I've been using: "code.google.com/p/go.crypto/ssh", but notice now that the documentation shows "golang.org/x/crypto/ssh" (https://godoc.org/golang.org/x/crypto/ssh). 

However, if I try "go get golang.org/x/crypto/ssh", I get:


package golang.org/x/crypto/ssh: unrecognized import path "golang.org/x/crypto/ssh"

One common explanation is that something is blocking access to the golang.org domain.

go get -v golang.org/x/crypto/ssh should tell you more.

Blake Caldwell

unread,
Jan 16, 2015, 1:15:13 AM1/16/15
to golan...@googlegroups.com
Thanks Dave - all my tests are green, so no worries :)

Blake Caldwell

unread,
Jan 16, 2015, 1:16:31 AM1/16/15
to golan...@googlegroups.com, bl...@fogcreek.com
Wow, that was embarrassing. Thanks for the "-v" suggestion. I forgot that I had set up HTTP traffic to go through my local proxy for some testing the other day via ~/.bash_profile. The proxy is gone... so yeah, you were right!

:facepalm:

Thanks!

Larry Clapp

unread,
Jan 16, 2015, 1:48:59 PM1/16/15
to golan...@googlegroups.com, bl...@fogcreek.com
On Friday, January 16, 2015 at 12:41:35 AM UTC-5, minux wrote:
Thanks, minix.  This happens to me with github when my VPNs are on.  Didn't know about the -v option.  Will come in handy later.

-- L
 
Reply all
Reply to author
Forward
0 new messages