Skip to content

Instantly share code, notes, and snippets.

@futuretea
Last active July 11, 2022 09:15
Show Gist options
  • Save futuretea/d7a3b63f3013d43a1c3256f2770f4497 to your computer and use it in GitHub Desktop.
Save futuretea/d7a3b63f3013d43a1c3256f2770f4497 to your computer and use it in GitHub Desktop.
harvester-dev.sh
# mount host E:\\dev to wsl ~/dev
cd ~
ln -s /mnt/e/dev
# mount repo to GOPATH
mkdir -p ~/go/src/github.com/harvester
cd ~/go/src/github.com/harvester
mount --bind /home/go/dev/futuretea/harvester ./harvester
GO111MODULE=off go generate
CGO_ENABLED=0 go build -mod=vendor .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment