Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Fix CI for go1.7 #382

Merged
merged 1 commit into from Sep 3, 2016
Merged

Fix CI for go1.7 #382

merged 1 commit into from Sep 3, 2016

Conversation

tonistiigi
Copy link
Member

govet detected a case where we copy tls.Config although
the var contains mutexes. This is fixed in go1.8 with a
stdlib Clone method. Temporarily add a local copy of that
function until we can move to go1.8

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

govet detected a case where we copy tls.Config although
the var contains mutexes. This is fixed in go1.8 with a
stdlib Clone method. Temporarily add a local copy of that 
function until we can move to go1.8 

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi
Copy link
Member Author

@tiborvass @aaronlehmann

@tiborvass
Copy link
Contributor

So this will not work for Go1.6 and under, I guess it's fine. LGTM

@aaronlehmann
Copy link
Contributor

Is this really how Clone is implemented upstream? I know we don't care for our purposes, but I would expect a function called Clone to make a deep copy of slices and maps inside the struct. Otherwise changes to the slice or map in the original object will affect the clone, or vice versa.

@tonistiigi
Copy link
Member Author

@tiborvass I can make a go1.6 function as well if you think it's important. We can't reuse the same function though because new keys were added.

@aaronlehmann golang/go@d24f446 golang/go@db58021

@aaronlehmann
Copy link
Contributor

Fair enough: Clone returns a shallow clone of c.

@aaronlehmann
Copy link
Contributor

LGTM

@tiborvass tiborvass merged commit 611c63f into docker:master Sep 3, 2016
jarondl added a commit to jarondl/telegraf that referenced this pull request Feb 15, 2017
The docker engine-api package we use needs golang 1.7+, see:
docker/engine-api#382 (comment)

So telegraf won't compile without 1.7
sparrc pushed a commit to influxdata/telegraf that referenced this pull request Feb 15, 2017
The docker engine-api package we use needs golang 1.7+, see:
docker/engine-api#382 (comment)

So telegraf won't compile without 1.7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants