Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Make Weave build & work with Go 1.5 #1386

Merged
merged 2 commits into from
Sep 9, 2015
Merged

Make Weave build & work with Go 1.5 #1386

merged 2 commits into from
Sep 9, 2015

Conversation

tomwilkie
Copy link
Contributor

FIxes:

go get ./prog/weavewait
go install net: open /usr/local/go/pkg/linux_amd64/net.a: permission denied
make: *** [prog/weavewait/weavewait] Error 1

And:

# github.com/weaveworks/weave/prog/weaver
link: warning: option -X main.version git-4c6a8f29c0ea may not work in future releases; use -X main.version=git-4c6a8f29c0ea

TODO:

  • Update circle to install go1.5

@tomwilkie tomwilkie changed the title Make Weave build on Go 1.5 WIP Make Weave build on Go 1.5 Sep 4, 2015
@tomwilkie
Copy link
Contributor Author

Also fixes

vagrant@ubuntu-14:~/src/github.com/weaveworks/scope/experimental/example$ docker run -d --name=elasticsearch1 --hostname=elasticsearch.weave.local elasticsearch
d7dc75438f58638136f9be1364f604532d4d19845addbfbb69d43244f8495251
Error response from daemon: ./weave: line 1625: weavehosts: not found

Caused by weavehosts not be statically linked.

@dpw
Copy link
Contributor

dpw commented Sep 4, 2015

build/dockerfile should not be changed to use 1.5, unless we are making a decision as a team to make 1.5 our recommended golang version, and all use 1.5 for development henceforth. Otherwise, it should be left at 1.4, in order to make sure that we do not write code that depends on 1.5.

@tomwilkie
Copy link
Contributor Author

@dpw PTAL

@dpw
Copy link
Contributor

dpw commented Sep 7, 2015

Should this issue cover making weave work with 1.5, or is it just build issues? (I'm thinking of #1393)

@rade
Copy link
Member

rade commented Sep 7, 2015

Should this issue cover making weave work with 1.5, or is it just build issues?

As long as this PR doesn't entail switching to 1.5 for builds, then I think it's ok to handle runtime issues separately.

@dpw
Copy link
Contributor

dpw commented Sep 7, 2015

As long as this PR doesn't entail switching to 1.5 for builds, then I think it's ok to handle runtime issues separately.

Ok. But we might as well fix obvious breakage, right? I'll add my fix.

I've checked that Tom's changes don't break builds with 1.4. I'll find out what the plan for this PR is tomorrow (not sure what the "WIP" signifies).

@tomwilkie
Copy link
Contributor Author

Wip means work in progress but it can be removed now.

On Monday, 7 September 2015, David Wragg [email protected] wrote:

As long as this PR doesn't entail switching to 1.5 for builds, then I
think it's ok to handle runtime issues separately.

Ok. But we might as well fix obvious breakage, right? I'll add my fix.

I've checked that Tom's changes don't break builds with 1.4. I'll find out
what the plan for this PR is tomorrow (not sure what the "WIP" signifies).


Reply to this email directly or view it on GitHub
#1386 (comment).

@tomwilkie tomwilkie changed the title WIP Make Weave build on Go 1.5 Make Weave build on Go 1.5 Sep 7, 2015
@tomwilkie tomwilkie changed the title Make Weave build on Go 1.5 Make Weave build & work with Go 1.5 Sep 7, 2015
@dpw
Copy link
Contributor

dpw commented Sep 9, 2015

Just tested with go-1.5.1.

@dpw dpw merged commit 5aa58e6 into master Sep 9, 2015
dpw added a commit that referenced this pull request Sep 9, 2015
Make Weave build & work with Go 1.5
@rade
Copy link
Member

rade commented Sep 11, 2015

This got reverted in 12324e3 because of #1412.

@rade rade modified the milestone: 1.2.0 Sep 18, 2015
@rade rade deleted the go-1.5 branch October 1, 2015 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants