(etag string)
| 128 | } |
| 129 | |
| 130 | func 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 | |
| 138 | func etagPath() string { |
| 139 | dir := filepath.Join(CacheHomeDir, "act") |
no test coverage detected
searching dependent graphs…