From ed2d699804c09875c678900937923fcbc4f6e00a Mon Sep 17 00:00:00 2001 From: Hooman Yar Date: Wed, 10 Nov 2021 07:28:00 -0800 Subject: [PATCH] Replace ! with _ in root.generated file to avoid build conflicts (#1701) Co-authored-by: Hooman Yar --- 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