Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get on master branch fails. #6846

Closed
rebecca-makar opened this issue Jan 13, 2020 · 4 comments
Closed

go get on master branch fails. #6846

rebecca-makar opened this issue Jan 13, 2020 · 4 comments

Comments

@rebecca-makar
Copy link
Member

Bug Report

  • go get on entire directory. Following README.md
  • SDK version - master
  • What happened?
+ go get -v -u github.com/Azure/azure-sdk-for-go/...
github.com/Azure/azure-sdk-for-go (download)
github.com/Azure/go-autorest (download)
github.com/dgrijalva/jwt-go (download)
github.com/satori/go.uuid (download)
github.com/shopspring/decimal (download)
Fetching https://golang.org/x/crypto/pkcs12?go-get=1
Parsing meta tags from https://golang.org/x/crypto/pkcs12?go-get=1 (status code 200)
get "golang.org/x/crypto/pkcs12": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/pkcs12?go-get=1
get "golang.org/x/crypto/pkcs12": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/crypto/pkcs12/internal/rc2?go-get=1
Parsing meta tags from https://golang.org/x/crypto/pkcs12/internal/rc2?go-get=1 (status code 200)
get "golang.org/x/crypto/pkcs12/internal/rc2": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/pkcs12/internal/rc2?go-get=1
get "golang.org/x/crypto/pkcs12/internal/rc2": verifying non-authoritative meta tag
github.com/globalsign/mgo (download)
github.com/dimchansky/utfbom (download)
github.com/mitchellh/go-homedir (download)
github.com/spf13/cobra (download)
github.com/spf13/pflag (download)
github.com/Masterminds/semver (download)
github.com/pkg/errors (download)
Fetching https://golang.org/x/tools/imports?go-get=1
Parsing meta tags from https://golang.org/x/tools/imports?go-get=1 (status code 200)
get "golang.org/x/tools/imports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/imports?go-get=1
get "golang.org/x/tools/imports": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
Fetching https://golang.org/x/tools/internal/imports?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/imports?go-get=1 (status code 200)
get "golang.org/x/tools/internal/imports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/imports?go-get=1
get "golang.org/x/tools/internal/imports": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/go/ast/astutil?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/ast/astutil?go-get=1 (status code 200)
get "golang.org/x/tools/go/ast/astutil": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/go/ast/astutil?go-get=1
get "golang.org/x/tools/go/ast/astutil": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/internal/gopathwalk?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/gopathwalk?go-get=1 (status code 200)
get "golang.org/x/tools/internal/gopathwalk": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/gopathwalk?go-get=1
get "golang.org/x/tools/internal/gopathwalk": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/internal/fastwalk?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/fastwalk?go-get=1 (status code 200)
get "golang.org/x/tools/internal/fastwalk": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/fastwalk?go-get=1
get "golang.org/x/tools/internal/fastwalk": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/internal/module?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/module?go-get=1 (status code 200)
get "golang.org/x/tools/internal/module": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/module?go-get=1
get "golang.org/x/tools/internal/module": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/internal/semver?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/semver?go-get=1 (status code 200)
get "golang.org/x/tools/internal/semver": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/semver?go-get=1
get "golang.org/x/tools/internal/semver": verifying non-authoritative meta tag
github.com/Azure/azure-sdk-for-go
github.com/Azure/azure-sdk-for-go/profiles
github.com/Azure/azure-sdk-for-go/profiles/2017-03-09
github.com/Azure/azure-sdk-for-go/version
github.com/Azure/go-autorest/autorest/date
github.com/dgrijalva/jwt-go
github.com/Azure/go-autorest/tracing
github.com/Azure/go-autorest/logger
github.com/Azure/go-autorest/autorest/adal
github.com/Azure/go-autorest/autorest/to
github.com/Azure/go-autorest/autorest/validation
github.com/Azure/go-autorest/autorest
github.com/satori/go.uuid
github.com/Azure/azure-sdk-for-go/profiles/2018-03-01
github.com/Azure/azure-sdk-for-go/profiles/2019-03-01
github.com/Azure/azure-sdk-for-go/profiles/latest
github.com/shopspring/decimal
github.com/Azure/go-autorest/autorest/azure
github.com/Azure/azure-sdk-for-go/profiles/preview
github.com/Azure/azure-sdk-for-go/sdk/internal/uuid
github.com/Azure/azure-sdk-for-go/sdk/azcore
# github.com/Azure/azure-sdk-for-go/sdk/azcore
../Azure/azure-sdk-for-go/sdk/azcore/request.go:174:29: req.Request.Header.Clone undefined (type http.Header has no field or method Clone)
github.com/Azure/azure-sdk-for-go/sdk/internal/atomic
github.com/Azure/azure-sdk-for-go/sdk/internal/mock
github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2016-03-30/compute
github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault
github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/keyvault/keyvault
github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/keyvaultapi
github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/compute/mgmt/compute
github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2016-03-30/compute/computeapi
<<<<<REMOVED HUGE CHUNK OF ALL THE INSTALLS BUT NO ERRORS WERE PRESENT>>>>>
github.com/Azure/azure-sdk-for-go/tools/testpkgs/scenrioe/mgmt/2019-10-11/foo/fooapi
github.com/Azure/azure-sdk-for-go/tools/profileBuilder/model
github.com/Azure/azure-sdk-for-go/tools/testpkgs/scenrioe/mgmt/2019-10-11/foo/v2
github.com/Azure/azure-sdk-for-go/tools/testpkgs/scenrioe/mgmt/2019-10-11/foo/v2/fooapi
github.com/Azure/azure-sdk-for-go/tools/testpkgs/scenrioe/mgmt/2019-10-11/foo/v3
github.com/Azure/azure-sdk-for-go/tools/profileBuilder/cmd
github.com/Azure/azure-sdk-for-go/tools/testpkgs/scenrioe/mgmt/2019-10-11/foo/v3/fooapi
github.com/Azure/azure-sdk-for-go/tools/profileBuilder
github.com/Azure/azure-sdk-for-go/tools/versioner/cmd
github.com/Azure/azure-sdk-for-go/tools/versioner
##[error]Bash exited with code '2'.
##[section]Finishing: go get dependencies
  • What did you expect or want to happen?
    Before January 10th, everything installed as expected.
    I think these lines are the problem or pointing out the problem (maybe)??:
# github.com/Azure/azure-sdk-for-go/sdk/azcore
../Azure/azure-sdk-for-go/sdk/azcore/request.go:174:29: req.Request.Header.Clone undefined (type http.Header has no field or method Clone)
  • How can we reproduce it?
    On a VM that does not have any azure go files already installed.
    Clean environment. Fresh install of:
    go get -v -u github.com/Azure/azure-sdk-for-go/...

Thank you for the help!!!!

  • Anything we should know about your environment.
@ArcturusZhang
Copy link
Member

I believe this is because you are not using golang 1.13.
The reported error req.Request.Header.Clone is not defined is caused because the Clone method is introduced in golang 1.13. I remember I have seen this in the CI failure.
Hi @jhendrixMSFT how could we resolve this?

@jhendrixMSFT
Copy link
Member

Will add go1.13 build constraints to the sources under ./sdk, sorry about that.

@jhendrixMSFT
Copy link
Member

Should be fixed now.

@rebecca-makar
Copy link
Member Author

rebecca-makar commented Jan 16, 2020

Thank you!!! @jhendrixMSFT

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants