Skip to content

Commit

Permalink
Merge pull request #220 from depot/fix/temporary-config-dir
Browse files Browse the repository at this point in the history
fix(buildx): use .docker/buildx for temporary files
  • Loading branch information
goller authored Oct 30, 2023
2 parents e3c6c4c + 73ef972 commit 2ef3252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,9 @@ func DepotSaveNodes(configDir string, ng *store.NodeGroup) (err error) {
// those files would then be read by the Txn.List()/Txn.NodeGroupByName()
// methods and thus would fail.
//
// Instead, we save the file to the TempDir and then rename it.
// Instead, we save the file to the configDir and then rename it.
// CreateTemp creates a file with 0600 perms.
f, err := os.CreateTemp("", ".tmp-"+filepath.Base(fileName))
f, err := os.CreateTemp(configDir, ".tmp-"+filepath.Base(fileName))
if err != nil {
return err
}
Expand Down

0 comments on commit 2ef3252

Please sign in to comment.