()
| 189 | } |
| 190 | |
| 191 | func (c *RepoCache) Close() error { |
| 192 | var errWait multierr.ErrWaitGroup |
| 193 | for _, mgmt := range c.subcaches { |
| 194 | errWait.Go(mgmt.Close) |
| 195 | } |
| 196 | err := errWait.Wait() |
| 197 | if err != nil { |
| 198 | return err |
| 199 | } |
| 200 | |
| 201 | err = c.repo.Close() |
| 202 | if err != nil { |
| 203 | return err |
| 204 | } |
| 205 | |
| 206 | return c.repo.LocalStorage().Remove(lockfile) |
| 207 | } |
| 208 | |
| 209 | type BuildEventType int |
| 210 |
nothing calls this directly
no test coverage detected