Skip to content

Commit

Permalink
Ensure the dir we're exporting to exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatskaari committed Jan 29, 2025
1 parent 27662dc commit 90aead6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func ToDir(state *core.BuildState, dir string, noTrim bool, targets []core.Build
exportedTargets: map[core.BuildLabel]bool{},
}

if err := os.MkdirAll(dir, fs.DirPermissions); err != nil {
log.Fatalf("failed to create export dir: %v", dir)
}

e.exportPlzConf()
for _, target := range state.Config.Parse.PreloadSubincludes {
for _, includeLabel := range append(state.Graph.TransitiveSubincludes(target), target) {
Expand Down

0 comments on commit 90aead6

Please sign in to comment.