Converting an existing project with a /vendor directory to use Go Modules (go version 1.12). I do go mod init
to generate the go.mod
file. Then I do go get -u ./...
to populate the go.mod file. During this time, it tries to locate a package on github that no longer exists. It is vendored in my /vendor directory.
Until I can upgrade my code to use a different package, how can I continue the conversion to using modules? That is, I want to keep some things vendored (I also have some modified code under /vendor), while other things are handled by go modules.