From 99b145e37cf29cc963bc369119f19d381efd0de2 Mon Sep 17 00:00:00 2001 From: LiYang Date: Tue, 14 Sep 2021 09:51:19 +0800 Subject: [PATCH] fix go build --- judge/languages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/languages.py b/judge/languages.py index 0bf0038d..6b7ab665 100644 --- a/judge/languages.py +++ b/judge/languages.py @@ -189,7 +189,7 @@ _go_lang_config = { "max_real_time": 5000, "max_memory": 1024 * 1024 * 1024, "compile_command": "/usr/bin/go build -o {exe_path} {src_path}", - "env": ["GOCACHE=/tmp"] + "env": ["GOCACHE=/tmp", "GOPATH=/tmp"] }, "run": { "command": "{exe_path}",