(ctx context.Context, dir string, writable bool)
| 25 | } |
| 26 | |
| 27 | func NewPkgCacheConfig(ctx context.Context, dir string, writable bool) *PkgCacheConfig { |
| 28 | return &PkgCacheConfig{ |
| 29 | ctx: ctx, |
| 30 | Dir: dir, |
| 31 | Writable: writable, |
| 32 | CacheArtifacts: true, |
| 33 | CacheDownloads: true, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func (p *PkgCacheConfig) Refresh() error { |
| 38 | if p.Dir == "" { |
no outgoing calls