If you see something like github.com/some/some v2.0.2+incompatible
`+incompatible suffix is added for all packages that not opted in to Go Modules yet or violate its versioning guidelines.
go mod edit -replace github.com/some/thing=./packages/mything
which will add a replace directive in the go.mod file
You can remove the line manually or run:
go mod edit -dropreplace github.com/some/thing
go mod vendor does not directly download the dependencies to vendor folder, its not possible with go modules. Its a copy over already downloaded packages.