Last active
January 2, 2019 14:19
-
-
Save Ebaneck/ace56c61de9deca74a95f60f506371fe to your computer and use it in GitHub Desktop.
install go-audit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| wget https://storage.googleapis.com/golang/go1.11.4.linux-amd64.tar.gz | |
| tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz | |
| # Add it to our path | |
| echo -e "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile | |
| source /etc/profile | |
| # Ensure we're running at least go 1.7 | |
| #go version | |
| # Returns: go version go1.7.4 linux/amd64 | |
| # Set our GOPATH to ~/go | |
| mkdir ~/go | |
| export GOPATH=~/go | |
| apt-get install build-essential | |
| go get -u github.com/kardianos/govendor | |
| cd go/src/ | |
| git clone https://github.com/slackhq/go-audit.git | |
| cd go-audit | |
| ~/go/bin/govendor sync # This command takes a while with no output | |
| go build | |
| #bam, you get the go binary file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment