Skip to content

Commit

Permalink
Replace ! with _ in root.generated file to avoid build conflicts (99d…
Browse files Browse the repository at this point in the history
…esigns#1701)

Co-authored-by: Hooman Yar <hooman.yar@coinbase.com>
  • Loading branch information
0xhmn and Hooman Yar authored Nov 10, 2021
1 parent 828820a commit ed2d699
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed2d699

Please sign in to comment.