Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the vendor directory? #40

Open
arschles opened this issue Apr 14, 2020 · 6 comments
Open

Remove the vendor directory? #40

arschles opened this issue Apr 14, 2020 · 6 comments

Comments

@arschles
Copy link

The lowest version number this seems to be building with is 1.12, so in theory the vendor directory could be removed. Is there a reason it needs to stay?

@philips
Copy link
Contributor

philips commented May 28, 2020

Why should the project remove vendor?

@davidnewhall
Copy link

Because it causes problems with go modules. Why is it needed? You can always go mod vendor before deploy if you need the files locally.

@philips
Copy link
Contributor

philips commented Oct 6, 2020

What problems does it cause for you specifically?

I like the vendor because it enables builds with contacting the internet.

@davidnewhall
Copy link

I forked this repo and rewrote half the stuff in it a while back. That included removing the vendor folder. This doesn't cause me problems, but with other repos this makes upgrading vendors difficult. Like using yaml.v3 instead of yaml.v2. It's bad practice for public repos.

How do you build the data in this repo without connecting to the Internet to clone it? And if you can clone this repo, can't you clone the two vendor dependencies at the same time?

@philips
Copy link
Contributor

philips commented Oct 7, 2020

I appreciate that you don't like the vendor directory but you also haven't presented specific problems it is causing.

  1. Why is it bad practice on public repos?
  2. Why is upgrading vendors difficult? What specific commands are difficult?

@davidnewhall
Copy link

Oh I like the vendor director. When I make it. ;) I have no dogs in this fight, so I'll let OP answer your questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants