(dep models.Dependency)
| 74 | } |
| 75 | |
| 76 | func makeStorageCache(dep models.Dependency) storage.Storer { |
| 77 | paths.EnsureCacheDir(dep) |
| 78 | dir := filepath.Join(env.GetCacheDir(), dep.GetHashName()) |
| 79 | fs := osfs.New(dir) |
| 80 | |
| 81 | newStorage := filesystem.NewStorage(fs, cache2.NewObjectLRUDefault()) |
| 82 | return newStorage |
| 83 | } |
| 84 | |
| 85 | func makeWtFileSystem(dep models.Dependency) billy.Filesystem { |
| 86 | paths.EnsureCacheDir(dep) |
no test coverage detected