-
Notifications
You must be signed in to change notification settings - Fork 11
cmd/go/internal/test: add opt-in file hashing instead of modtime for test caching (w/ git) #153
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
base: tailscale.go1.25
Are you sure you want to change the base?
Conversation
…test caching (w/ git) Updates golang#58571 Updates #150 (cherry picked from commit 64af022)
c0dcbd1 to
4b58c16
Compare
| // GitHash is a git hash in hex form. | ||
| // | ||
| // It's usually a SHA-1 hash, but could be SHA-256 depending on the git | ||
| // configuration. | ||
| type GitHash string | ||
|
|
||
| // Enabled is whether git hash lookups are enabled via the CMD_GO_USE_GIT_HASH | ||
| // environment variable. | ||
| var Enabled bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added docs, @tomhjp
src/cmd/go/internal/modindex/read.go
Outdated
| return h.Sum(), nil | ||
| } | ||
|
|
||
| func modTimeOrHash(info fs.FileInfo) any { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can probably unify these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…test caching (w/ git) Updates golang#58571 Updates #150 (cherry picked from commit 64af022)
4b58c16 to
560747f
Compare
tomhjp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
485c689 to
799b253
Compare
This pulls in tailscale/go#153, which we want to begin experimenting with. Updates tailscale/go#150 Change-Id: Id3e03558ee69e74361431650530e8227dfdef978 Signed-off-by: Brad Fitzpatrick <[email protected]>
This pulls in tailscale/go#153, which we want to begin experimenting with. Updates tailscale/go#150 Change-Id: Id3e03558ee69e74361431650530e8227dfdef978 Signed-off-by: Brad Fitzpatrick <[email protected]>
Updates golang#58571
Updates #150