From 36e993493daf0be1fdad1104c46da79442b8ca07 Mon Sep 17 00:00:00 2001 From: Gordon Date: Tue, 21 Nov 2023 18:25:23 -0500 Subject: [PATCH] Don't use colons in file names --- pkg/engine2/path_selection/debug.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/engine2/path_selection/debug.go b/pkg/engine2/path_selection/debug.go index 8a6c76540..c91158830 100644 --- a/pkg/engine2/path_selection/debug.go +++ b/pkg/engine2/path_selection/debug.go @@ -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)