fix : go interpreter error, hf provider import + feat : more logger

This commit is contained in:
martin legrand
2025-04-27 20:37:23 +02:00
parent f02f096356
commit 5517f53f8a
14 changed files with 84 additions and 34 deletions
+4 -1
View File
@@ -33,12 +33,15 @@ class GoInterpreter(Tools):
f.write(code)
try:
env = os.environ.copy()
env["GO111MODULE"] = "off"
compile_command = ["go", "build", "-o", exec_file, source_file]
compile_result = subprocess.run(
compile_command,
capture_output=True,
text=True,
timeout=10
timeout=10,
env=env
)
if compile_result.returncode != 0: