You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err=replaceInFile(filepath.Join(gameDir, "Game.java"), "throw new RuntimeException(\"The CG_GAME_URL environment variable must be set.\")", "return \""+url+"\"")
59
+
iferr!=nil {
60
+
returnerr
61
+
}
62
+
deferfunc() {
63
+
err2:=replaceInFile(filepath.Join(gameDir, "Game.java"), "return \""+url+"\"", "throw new RuntimeException(\"The CG_GAME_URL environment variable must be set.\")")
64
+
iferr==nil&&err2!=nil {
65
+
err=err2
66
+
}
67
+
}()
68
+
69
+
err=os.RemoveAll("target")
70
+
iferr!=nil {
71
+
returnfmt.Errorf("Failed to remove target directory: %w", err)
0 commit comments