To sync the vendor directory , run : go mod vendor After that, you might need to run go mod vendor to update the vendor directory. If you have a vendor directory in the root of your main module and the Go version in go.mod is 1.14 or higher, you don’t need to do anything special to enable vendoring.