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

cmd/go: internal package errors only when using go get -u #11477

Closed
jacobsa opened this issue Jun 29, 2015 · 1 comment
Closed

cmd/go: internal package errors only when using go get -u #11477

jacobsa opened this issue Jun 29, 2015 · 1 comment

Comments

@jacobsa
Copy link
Contributor

jacobsa commented Jun 29, 2015

I'm running a version of Go built this morning:

% go version
go version devel +1122836 Mon Jun 29 21:18:01 2015 +0000 darwin/amd64

% go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/jacobsa/tmp/go"
GORACE=""
GOROOT="/Users/jacobsa/clients/go"
GOTOOLDIR="/Users/jacobsa/clients/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT=""
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

Starting fresh and using go get works fine:

% rm -rf $GOPATH/*
zsh: sure you want to delete all the files in /Users/jacobsa/tmp/go [yn]? y
% go get golang.org/x/build/cmd/gomote
%

But doing the same with go get -u gives errors about internal packages:

% rm -rf $GOPATH/*                    
zsh: sure you want to delete all the files in /Users/jacobsa/tmp/go [yn]? y
% go get -u golang.org/x/build/cmd/gomote
package golang.org/x/build/cmd/gomote
    imports golang.org/x/build/auth
    imports golang.org/x/oauth2
    imports golang.org/x/net/context
    imports golang.org/x/oauth2/internal
    imports golang.org/x/oauth2/internal
    imports golang.org/x/oauth2/internal: use of internal package not allowed
package golang.org/x/build/cmd/gomote
    imports golang.org/x/build/auth
    imports golang.org/x/oauth2
    imports golang.org/x/net/context
    imports golang.org/x/oauth2/internal
    imports golang.org/x/oauth2/google
    imports golang.org/x/oauth2/jws
    imports golang.org/x/oauth2/jwt
    imports google.golang.org/cloud/compute/metadata
    imports google.golang.org/cloud/internal
    imports google.golang.org/cloud/internal
    imports google.golang.org/cloud/internal: use of internal package not allowed
package golang.org/x/build/cmd/gomote
    imports golang.org/x/build/auth
    imports golang.org/x/oauth2
    imports golang.org/x/net/context
    imports golang.org/x/oauth2/internal
    imports golang.org/x/oauth2/google
    imports golang.org/x/oauth2/jws
    imports golang.org/x/oauth2/jwt
    imports google.golang.org/cloud/compute/metadata
    imports google.golang.org/cloud/internal
    imports golang.org/x/build/buildlet
    imports golang.org/x/build/dashboard
    imports google.golang.org/api/compute/v1
    imports google.golang.org/api/googleapi
    imports google.golang.org/api/googleapi/internal/uritemplates
    imports google.golang.org/api/googleapi/internal/uritemplates
    imports google.golang.org/api/googleapi/internal/uritemplates: use of internal package not allowed
%

I've noticed similar errors when not starting fresh (i.e. trying to update commands).

@bradfitz
Copy link
Contributor

Dup of #11307

@golang golang locked and limited conversation to collaborators Jun 28, 2016
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