File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
internal/devbox/providers/nixcache Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package nixcache
2
2
3
3
import (
4
4
"context"
5
+ "fmt"
5
6
"slices"
6
7
"time"
7
8
@@ -27,7 +28,12 @@ func Get() *Provider {
27
28
// Credentials fetches short-lived credentials that grant access to the user's
28
29
// private cache.
29
30
func (p * Provider ) Credentials (ctx context.Context ) (AWSCredentials , error ) {
30
- cache := filecache.New [AWSCredentials ]("devbox/providers/nixcache" )
31
+ // Adding version to caches to avoid conflicts if we want to update the schema
32
+ // or while working on dev.
33
+ cache := filecache.New [AWSCredentials ](fmt .Sprintf (
34
+ "devbox/%s/providers/nixcache" ,
35
+ build .Version ,
36
+ ))
31
37
token , err := identity .Get ().GenSession (ctx )
32
38
if err != nil {
33
39
return AWSCredentials {}, err
You can’t perform that action at this time.
0 commit comments