Skip to content

"Getting started" guide leads people to check in vendor/src directory #30

@ymattw

Description

@ymattw

In the FAQ (content/faq/externals.md) you clearly mentioned you disagree managing a copy of dependencies in project code base.

The Go authors agree that vendoring, taking a copy of your dependencies, is the path to repeatable builds – we just disagree on the method.

The Go authors are recommending vendoring by copying the source of your dependencies into a folder inside your package, then rewriting the source of those vendored depdendencies to accomodate.

Then please do NOT lead people to do that in the "getting started" guide (content/examples/getting-started.md) (the "Wrapping up" section):

you should check your $PROJECT directory into a source control repository. This includes any source you have copied from other projects into your $PROJECT/vendor/src/ directory.

I just started learning golang and got here when trying to pick the best dependency management tool out of the ~20 tools (!). Turns out a lot of tools recommend to copy dependencies and check into project source tree. I personally strongly disagree with that, I'd rather manage links to dependencies in project source tree, either using git submodule/subtree or tools like gom. If your opinions remain the same as mentioned in the FAQ, giving some more detailed examples would be very helpful.

Thanks for the great tool!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions