From c5a90c2ebf22c46ec6a7c391ba37355f9a9dc736 Mon Sep 17 00:00:00 2001 From: Hooman Yar Date: Tue, 9 Nov 2021 14:40:58 -0800 Subject: [PATCH] Replace ! with _ in root.generated file to avoid build conflicts --- codegen/generate.go | 2 +- .../followschema/{root!.generated.go => root_.generated.go} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename codegen/testserver/followschema/{root!.generated.go => root_.generated.go} (100%) diff --git a/codegen/generate.go b/codegen/generate.go index 84c130a2e8f..cd558fd2a93 100644 --- a/codegen/generate.go +++ b/codegen/generate.go @@ -127,7 +127,7 @@ func addBuild(filename string, p *ast.Position, data *Data, builds *map[string]* // files for each schema file. func generateRootFile(data *Data) error { dir := data.Config.Exec.DirName - path := filepath.Join(dir, "root!.generated.go") + path := filepath.Join(dir, "root_.generated.go") _, thisFile, _, _ := runtime.Caller(0) rootDir := filepath.Dir(thisFile) diff --git a/codegen/testserver/followschema/root!.generated.go b/codegen/testserver/followschema/root_.generated.go similarity index 100% rename from codegen/testserver/followschema/root!.generated.go rename to codegen/testserver/followschema/root_.generated.go