-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: install changes mtimes of binaries even when otherwise unchanged #32338
Comments
go install
touches unchanged files
Can you elaborate on why you expected this? Alternatively, on what problems this is causing for you?
For what it's worth, I see the same behavior on Linux, so I don't think this is Windows-specific. I think this is just working as intended at the moment. |
The problem I'm facing is described in this issue here, related to AWS Cloudformation: aws/aws-cli#3131 I guess you can always argue that this is an issue with AWS Cloudformation, but more generally any implementation that considers the create/change date when determining if a binary has been changed or not would have this issue. |
Compare #33468. CC @jayconrod |
I think this behavior is intentional, but the file shouldn't actually be overwritten if it isn't stale. go/src/cmd/go/internal/work/exec.go Lines 1572 to 1597 in a2cef9b
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I expected
go install
leave the installed files alone, since nothing changed.What did you see instead?
Every file was recreated with a new date (checked with
stat
). I'm using WSL on Windows 10, not sure if this might affect this behaviour.The text was updated successfully, but these errors were encountered: