Skip to content

Conversation

@bradfitz
Copy link
Member

@bradfitz bradfitz commented Jan 28, 2026

Updates golang#58571
Updates #150

…test caching (w/ git)

Updates golang#58571
Updates #150

(cherry picked from commit 64af022)
@bradfitz bradfitz force-pushed the bradfitz/25_githash branch 2 times, most recently from c0dcbd1 to 4b58c16 Compare January 28, 2026 21:56
@bradfitz bradfitz requested a review from tomhjp January 28, 2026 22:03
@bradfitz
Copy link
Member Author

@tomhjp reviewed in #152 which I closed because CI doesn't run against other branches like that. So this is a version against the head of our branch for CI to run, and then I'll squash when I push.

Comment on lines +18 to +26
// 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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added docs, @tomhjp

return h.Sum(), nil
}

func modTimeOrHash(info fs.FileInfo) any {
Copy link
Member Author

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

Copy link
Member Author

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)
@bradfitz bradfitz force-pushed the bradfitz/25_githash branch from 4b58c16 to 560747f Compare January 28, 2026 22:07
Copy link
Member

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bradfitz added a commit to tailscale/tailscale that referenced this pull request Jan 28, 2026
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]>
bradfitz added a commit to tailscale/tailscale that referenced this pull request Jan 28, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants