Skip to content

Commit

Permalink
Don't use colons in file names
Browse files Browse the repository at this point in the history
  • Loading branch information
gordon-klotho committed Nov 21, 2023
1 parent 49da588 commit 36e9934
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/engine2/path_selection/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func writeGraph(input ExpansionInput, working, result construct.Graph) {
}

fprefix := fmt.Sprintf("selection/%s-%s", input.Dep.Source.ID, input.Dep.Target.ID)
fprefix = strings.ReplaceAll(fprefix, ":", "_") // some filesystems (NTFS) don't like colons in filenames

f, err := os.OpenFile(fprefix+".gv", os.O_RDWR|os.O_CREATE, 0755)
if err != nil {
zap.S().Errorf("could not create file %s: %v", fprefix, err)
Expand Down

0 comments on commit 36e9934

Please sign in to comment.