I've been seeing the same error with 2012.02.22-3 and I think it is
because the library archive is older than the go source files, hence
the archive is considered old and go install tries to rebuild it.
The following workaround solves this, dunno why the timestamps are
wrong in the first place:
find /usr/lib/go/pkg -type f -exec touch {} +
Cheers,
Justus
-- To UNSUBSCRIBE, email to debian-bugs-dist-REQU...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Ah, thanks for the hint. The timestamps are different because I copy
the source manually
from debian/rules.
That problem has easy solution, I am adding --preserve-timestamp
option to install invocation.
Could you retry it, when 2012.02.22-4 hits the debian? (Building now,
uploading in a moment.)
O.
On Sat, Mar 3, 2012 at 18:56, Justus Winter
<4win...@informatik.uni-hamburg.de> wrote:
> Hi Ondřej,
> I've been seeing the same error with 2012.02.22-3 and I think it is
> because the library archive is older than the go source files, hence
> the archive is considered old and go install tries to rebuild it.
> The following workaround solves this, dunno why the timestamps are
> wrong in the first place:
On Tue, Mar 13, 2012 at 15:47, Marvin Renich <m...@renich.org> wrote:
> * Justus Winter <4win...@informatik.uni-hamburg.de> [120311 14:19]:
>> Hm, the issue is back:
>> But this time my workaround isn't working anymore, don't know what
>> triggers the rebuild this time...
> Sorry it took so long to get back to you. I didn't have a chance to try
> 2012.02.22, but I'm still having problems with 2012.03.04. I get:
> $ go install ./
> load cmd/cgo: package cmd/cgo: no Go source files in /usr/lib/go/src/cmd/cgo
> And indeed, the only source for anything under .../src/cmd/ is the
> doc.go file for each command. The source for .../src/pkg/ seems to be
> intact.
That's true. They wasn't necessary in previous versions. I just cannot
understand the whole concept of "we compile everything, but we still
need the source code".
I'll include the cmd/ sources in next upload of golang-weekly.