Skip to content

Commit

Permalink
fixed docker build (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas authored Sep 7, 2022
1 parent 5f1e54f commit 6ff50ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -894,12 +894,11 @@ func movePackagesToArchive(dropPath string, requiredPackages []string) string {
continue
}

targetDir := filepath.Join(archivePath, rp, filepath.Base(f))
targetPath := filepath.Join(targetDir, filepath.Base(f))
targetPath := filepath.Join(archivePath, rp, filepath.Base(f))
targetDir := filepath.Dir(targetPath)
if err := os.MkdirAll(targetDir, 0750); err != nil {
fmt.Printf("warning: failed to create directory %s: %s", targetDir, err)
}

if err := os.Rename(f, targetPath); err != nil {
panic(errors.Wrap(err, "failed renaming file"))
}
Expand Down

0 comments on commit 6ff50ac

Please sign in to comment.