Skip to content

Commit 9c79b18

Browse files
committed
Move OCI cache dir
1 parent 2dcfde5 commit 9c79b18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/api/api/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func newTestService(t *testing.T) *ApiService {
1717
}
1818

1919
// Create OCI client for testing
20-
ociClient, err := images.NewOCIClient(cfg.DataDir + "/oci-cache")
20+
ociClient, err := images.NewOCIClient(cfg.DataDir + "/system/oci-cache")
2121
if err != nil {
2222
t.Fatalf("failed to create OCI client: %v", err)
2323
}

lib/providers/providers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func ProvideConfig() *config.Config {
3232
// ProvideOCIClient provides an OCI client
3333
func ProvideOCIClient(cfg *config.Config) (*images.OCIClient, error) {
3434
// Use a cache directory under dataDir for OCI layouts
35-
cacheDir := cfg.DataDir + "/oci-cache"
35+
cacheDir := cfg.DataDir + "/system/oci-cache"
3636
return images.NewOCIClient(cacheDir)
3737
}
3838

0 commit comments

Comments
 (0)