Skip to content

Commit

Permalink
fix(buildx): use .docker/buildx for temporary files
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed Oct 30, 2023
1 parent e3c6c4c commit 73ef972
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 73ef972

Please sign in to comment.