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: why "go get" will trigger "go install sync and strconv" #10367

Closed
shrimpy opened this issue Apr 8, 2015 · 1 comment
Closed

cmd/go: why "go get" will trigger "go install sync and strconv" #10367

shrimpy opened this issue Apr 8, 2015 · 1 comment

Comments

@shrimpy
Copy link

shrimpy commented Apr 8, 2015

apologize in advance if this is not the right place to ask question.

  • What version of Go are you using (go version)?

go 1.4.2

  • What operating system and processor architecture are you using?
    Windows server 2012 amd64
    Windows 8.1 amd64
  • What did you do?
    try to resolve dependencies for this file
  1. download go 1.4.2 package in windows 8.1 machine
  2. unzip the package, remove ".git, blog, doc and test" folders and zip the rest
  3. login to windows server 2012 machine as administrator, upload package and config GOROOT global environment variable
  4. login to windows server 2012 machine with different credential (not administrator), navigate to "src" folder and perform "go get gotry"
%gopath%
    |
    \--src
          |
          \--gotry
                  |
                  \-gotry.go
  • What did you expect to see?
    go will download all the dependencies and install to gopath
  • What did you see instead?
    go also try to perform write access to GOROOT, seeing below error (still able to build and run app)
go install sync: open D:\Program Files (x86)\go\1.4.2\pkg\windows_amd64\sync.a: Access is denied.
go install strconv: open D:\Program Files (x86)\go\1.4.2\pkg\windows_amd64\strconv.a: Access is denied.

Question:

1, why perform "go get" will trigger "go install sync and strconv"?
2. app seems still runs fine, what are the potential impact from above access denied error?

@minux
Copy link
Member

minux commented Apr 8, 2015

It's because somehow the timestamp of the installed *.a become
older than the package sources. Check your installation procedure
if it preserves file timestamps.

PS: the issue tracker is for reporting bugs, please ask questions
on the golang-nuts mailing list. Thanks.

@minux minux closed this as completed Apr 8, 2015
@mikioh mikioh changed the title Question: why "go get" will trigger "go install sync and strconv" cmd/go: why "go get" will trigger "go install sync and strconv" Apr 8, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 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