Skip to content

Commit

Permalink
Use os.TempDir() instead of hardcoded temp folder path
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Busko <[email protected]>
  • Loading branch information
2 people authored and ryanmoran committed Jul 21, 2022
1 parent e6a6c1c commit 62ba344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/setup-symlinks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func main() {
log.Fatal(err)
}

err = internal.Run(os.Args[0], wd, "/tmp")
err = internal.Run(os.Args[0], wd, os.TempDir())
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion run/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
entryResolver := draft.NewPlanner()
sbomGenerator := SBOMGenerator{}
packageManagerConfigurationManager := npminstall.NewPackageManagerConfigurationManager(servicebindings.NewResolver(), logger)
tmpDir := "/tmp"
tmpDir := os.TempDir()

packit.Run(
npminstall.Detect(
Expand Down

0 comments on commit 62ba344

Please sign in to comment.