Skip to content

compile docker master branch with go1.6.2 failed due to tls.Config.Clone #26410

Closed

Description

@feilengcui008

Output of docker version:

github master branch

Output of docker info:

no

Additional environment details (AWS, VirtualBox, physical, etc.):

ubuntu14.04
go 1.6.2

Steps to reproduce the issue:

  1. clone docker master branch
    2.compile docker and dockerd cmd

Describe the results you received:

../../client/transport/tlsconfig_clone.go:10: c.Clone undefined (type *tls.Config has no field or method Clone)

Describe the results you expected:

should produce docker binary

Additional information you deem important (e.g. issue happens only occasionally):

actually the origin of the problem is:
1. Background: before go1.7 there is no clone or Clone method for tls.Config, in go1.7 branch there is tls.Config.clone, and now in go source master branch, they changed it to tls.Config.Clone.
2. tlsconfig_clone.go now should only compile with go version > 1.7, and in tlsconfig_clone_go17.go
the two fileds "DynamicRecordSizingDisabled" and "Renegotiation" are added in go1.7+
3. so in the conditional compilation, we should consider both go veriosn <=1.6 and 1.7 and >1.7

Activity

  1. runcom commented on Sep 8, 2016

    @runcom
    Member

    getting this as well!

  2. added this to the 1.13.0 milestone on Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions