Skip to content

Commit 3d10986

Browse files
darccioeliottness
andauthored
internal: apply suggestions from code review
Co-authored-by: Eliott Bouhana <[email protected]>
1 parent c3c01f3 commit 3d10986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/gitmetadata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func getTagsFromBinary(readBuildInfo func() (*debug.BuildInfo, bool)) map[string
101101
return res
102102
}
103103

104-
// GetGitMetadataTags returns git metadata tags
104+
// GetGitMetadataTags returns git metadata tags. Returned map is read-only
105105
func GetGitMetadataTags() map[string]string {
106106
initOnce.Do(initGitMetadataTags)
107107
return gitMetadataTags
@@ -117,7 +117,7 @@ func initGitMetadataTags() {
117117
}
118118
}
119119

120-
// RefreshGitMetadataTags reset cached metadata tags
120+
// RefreshGitMetadataTags reset cached metadata tags. NOT thread-safe, use for testing only
121121
func RefreshGitMetadataTags() {
122122
initGitMetadataTags()
123123
}

0 commit comments

Comments
 (0)