MCPcopy
hub / github.com/nektos/act / saveNoticesEtag

Function saveNoticesEtag

cmd/notices.go:130–136  ·  view source on GitHub ↗
(etag string)

Source from the content-addressed store, hash-verified

128}
129
130func saveNoticesEtag(etag string) {
131 p := etagPath()
132 err := os.WriteFile(p, []byte(strings.TrimSuffix(etag, "\n")), 0o600)
133 if err != nil {
134 log.Debugf("Unable to save etag to %s: %e", p, err)
135 }
136}
137
138func etagPath() string {
139 dir := filepath.Join(CacheHomeDir, "act")

Callers 1

getVersionNoticesFunction · 0.85

Calls 2

etagPathFunction · 0.85
WriteFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…