⚡ Installing Vet
Here you can find different ways of installing vet. It covers various platforms, various architectures and the package managers.
Install Official GitHub Release Binary
- Download the binary file for your operating system/architecture from the Official GitHub Releases
 
The version given in the documentation may be older than actually released versions
- Linux
 - Mac M1/M2
 - Mac Intel
 - Windows
 
curl -L https://github.com/safedep/vet/releases/download/v1.6.0/vet_Linux_x86_64.tar.gz -o vet.tar.gzcurl -L https://github.com/safedep/vet/releases/download/v1.6.0/vet_Darwin_arm64.tar.gz -o vet.tar.gzcurl -L https://github.com/safedep/vet/releases/download/v1.6.0/vet_Darwin_x86_64.tar.gz -o vet.tar.gzgo install github.com/safedep/vet@latest- Unpack the downloaded archive using the following command 
tar -xvzf vet.tar.gz - Make sure the binary has execution bit turned on 
chmod +x ./vet - Move the binary in your system $PATH 
mv ./vet /usr/local/bin/ 
tip
- You can also verify the checksum using the checksum.txt
 - SLSA Provenance is published along with each binary release.
 
Install using go get
note
Ensure $(go env GOPATH)/bin is in your $PATH
go install github.com/safedep/vet@latest
Install using Container Image
- You can pull the vet official container image using 
docker pull ghcr.io/safedep/vet:latest - For scanning using vet container us the following command. Make sure to replace the 
yourcode-in-hostwith your local code directory which needs to be scanned 
docker run --rm -it -v yourcode-in-host:/code ghcr.io/safedep/vet scan -D /code
Install using Package Manager
Homebrew
- You can install 
vetusing homebrew for MacOS and Linux 
brew tap safedep/tap
brew install safedep/tap/vet
- You can upgrade 
vetusing homebrew for MacOS and Linux 
brew update
brew upgrade safedep/tap/vet
Install from source
- You can install the vet from the source by cloning the official repository and building locally
 
git clone --depth 1 --branch main https://github.com/safedep/vet
cd vet
go install