You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
# clone outside GOPATH
$ git clone https://github.com/Azure/draft
$ cd draft
$ go mod init github.com/Azure/draft
go mod will then copy the dependency requirements from the existing Gopkg.lock.
$ go mod tidy
to clean up the dependencies , add missing ones and mark indirect dependencies.
The results are this go.mod and this go.sum.
Now I can build and run draft outside the gopath.
$ go build ./...
$ go run ./cmd/draft
(I previously mentioned some dependency issues here but it turns out these were based on wrong assumptions - I thought I was already importing my fork with modules support but I was actually importing the remote version.) For documentation purposes I've stored them here)