Skip to content

Commit

Permalink
use the old way to set the path
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Feb 19, 2024
1 parent 962457f commit 422dcb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/imports/golang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 422dcb3

Please sign in to comment.