Skip to content

Commit 275349a

Browse files
committed
executors: make Go executor work with 1.16+
1 parent ed16549 commit 275349a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dmoj/executors/GO.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def get_compile_env(self):
4242
'CGO_ENABLED': '0',
4343
# We need GOCACHE to compile on Debian 10.0+.
4444
'GOCACHE': os.path.join(self._dir, '.cache'),
45+
# We need to set GOPATH to something on Go 1.16+.
46+
'GOPATH': '/nonexistent-path',
4547
}
4648

4749
def get_compile_args(self):

0 commit comments

Comments
 (0)