Skip to content

Commit

Permalink
use GOBIN instead of GOPATH when installing stackup-bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
norswap committed Sep 29, 2023
1 parent 6082374 commit e16c573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions account_abstraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ def setup():
log_file = "logs/install_bundler.log"
print(f"Installing stackup bundler. Logging to {log_file}")

env = {**os.environ, "GOBIN": os.path.abspath("bin")}

lib.run_roll_log(
"install stackup bundler",
f"go install {github_url}@{version}",
env=env,
log_file=log_file)

# === build paymaster dependencies ===
Expand Down
4 changes: 0 additions & 4 deletions deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ def go_path_setup():
if os.path.isfile("bin/go"):
os.environ.pop("GOROOT", None) # works if GOROOT isn't set

# make sure that GOPATH is set in PATH (this is needed for 4337 bundler)
gopath = lib.run("get GOPATH", "go env GOPATH").strip()
lib.prepend_to_path(gopath + "/bin")


####################################################################################################

Expand Down

0 comments on commit e16c573

Please sign in to comment.