From 422dcb310c1ae68d54fe5ef0864200321d21dfab Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Mon, 19 Feb 2024 21:23:04 +0000 Subject: [PATCH] use the old way to set the path --- builder/imports/golang.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/imports/golang.py b/builder/imports/golang.py index 629ff62e2..0b738a4a6 100644 --- a/builder/imports/golang.py +++ b/builder/imports/golang.py @@ -84,7 +84,8 @@ def install(self, env): ).relative_to(env.root_dir)) else: # export the PATH directly if not cross compile. - env.variables['go_path'] = '{}/go/bin'.format(install_dir) + # env.variables['go_path'] = '{}/go/bin'.format(install_dir) + sh.setenv('PATH', '{}{}{}'.format('{}/go/bin'.format(install_dir), os.pathsep, sh.getenv('PATH'))) self.installed = True