Skip to content

Commit

Permalink
added support for 32bit go installations (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 authored Jul 6, 2020
1 parent 4d1aef2 commit 4432990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pipeline/recon/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# flake8: noqa E231
import platform
from pathlib import Path


Expand All @@ -11,6 +12,7 @@
"results-dir": "recon-results",
"aquatone-scan-timeout": "900",
"home": Path.home(),
"arch": ["386", "amd64"][platform.architecture()[0].startswith("64")],
}

defaults["project-dir"] = str(Path(__file__).parents[2])
Expand Down
3 changes: 2 additions & 1 deletion pipeline/tools/go.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
installed: false
bashrc: &bashrc !join_path [!get_default "{home}", .bashrc]
path: &gotool !join_path [!get_default "{goroot}", go/bin/go]
dlpath: &dlpath !join_empty ["https://dl.google.com/go/go1.14.4.linux-", !get_default "{arch}", ".tar.gz"]

install_commands:
- wget -q https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz -O /tmp/go.tar.gz
- !join ["wget -q", *dlpath, "-O /tmp/go.tar.gz"]
- !join [tar -C, !get_default "{goroot}", -xvf /tmp/go.tar.gz]
- !join ["bash -c 'if [ ! $(grep $(dirname", *gotool, ")", *bashrc, ") ]; then echo PATH=${PATH}:$(dirname", *gotool, ") >>", *bashrc, "; fi'"]

Expand Down

0 comments on commit 4432990

Please sign in to comment.