When the -mod=vendor flag is used with the go build command, Go will use the dependencies located in the _____ directory.

  • /dependencies
  • /vendored
  • /external
  • /lib
When you use the "-mod=vendor" flag with the "go build" command in Go, the compiler will use the dependencies located in the "/vendor" directory. This means that the project will build using the versions of dependencies that you have vendored in your project's "/vendor" directory. It provides a way to build your project in isolation from the global module cache and ensures that the versions you specified in your "go.mod" file are used.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *