Skip to content

Commit 422dcb3

Browse files
committed
use the old way to set the path
1 parent 962457f commit 422dcb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/imports/golang.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def install(self, env):
8484
).relative_to(env.root_dir))
8585
else:
8686
# export the PATH directly if not cross compile.
87-
env.variables['go_path'] = '{}/go/bin'.format(install_dir)
87+
# env.variables['go_path'] = '{}/go/bin'.format(install_dir)
88+
sh.setenv('PATH', '{}{}{}'.format('{}/go/bin'.format(install_dir), os.pathsep, sh.getenv('PATH')))
8889

8990
self.installed = True
9091

0 commit comments

Comments
 (0)