go get results in "no such file or directory", sometimes

2,310 views
Skip to first unread message

Daniel Huckstep

unread,
Mar 6, 2012, 12:50:38 AM3/6/12
to golan...@googlegroups.com
Just installed the newest weekly. Installing go-gb works fine, but mc.go fails (worked in 02-22).
 
ruby-1.9.3-p0 ~ » go version
go version weekly.2012-03-04 +f4470a54e6db
ruby-1.9.3-p0 ~ » go get github.com/bmizerany/mc.go
stat github.com/bmizerany/mc.go: no such file or directory
ruby-1.9.3-p0 ~ » go get github.com/skelterjohn/go-gb/gb
ruby-1.9.3-p0 ~ » 

Not sure what I'm doing wrong...

- Daniel 

Daniel Huckstep

unread,
Mar 6, 2012, 1:00:43 AM3/6/12
to golan...@googlegroups.com
go get code.google.com/p/leveldb-go/leveldb works fine too...

Andrew Gerrand

unread,
Mar 6, 2012, 1:04:52 AM3/6/12
to Daniel Huckstep, golan...@googlegroups.com, Blake Mizerany

Nothing. The problem is that github.com/bmizerany/mc.go is a bad name.
This changed with the introduction of the go command. It means package
authors whose packages end in ".go" will need to change their import
paths. It's unfortunate, but it enables "go build *.go", so the
tradeoff was made.

Andrew

Brad Fitzpatrick

unread,
Mar 6, 2012, 1:09:36 AM3/6/12
to Andrew Gerrand, bmizerany, Daniel Huckstep, golan...@googlegroups.com, Blake Mizerany
[+blake]

Blake, stop breaking stuff.

Daniel Huckstep

unread,
Mar 6, 2012, 1:11:43 AM3/6/12
to golan...@googlegroups.com, Daniel Huckstep, Blake Mizerany
I figured it was something with the period.

Thanks for the quick reply!

- Daniel

Blake Mizerany

unread,
Mar 6, 2012, 11:38:49 AM3/6/12
to Andrew Gerrand, Daniel Huckstep, golan...@googlegroups.com
Oh jesus. That's all of my libs.

Andrew Gerrand

unread,
Mar 6, 2012, 4:34:24 PM3/6/12
to Blake Mizerany, Daniel Huckstep, golan...@googlegroups.com
On 7 March 2012 03:38, Blake Mizerany <bl...@heroku.com> wrote:
> Oh jesus. That's all of my libs.

Yeah. We did consider your case at the time, but on balance it really
is worth the pain to be able to say "go build foo.go" and get an
executable named "foo". I did this about 100 times yesterday.

Sorry. Hope it's not too much trouble to rename.

Andrew

Reply all
Reply to author
Forward
0 new messages