Closed siddarthkay closed 2 months ago
Code Climate has analyzed commit 0e9b92db and detected 0 issues on this pull request.
View more on Code Climate.
@42wim : what do you think about this proposal ?
Isn't the vendor
directory is usually committed to ensure reproducible builds? It's nowhere near as heavy as node_modules
@IntGrah : I agree its not heavy but the number of files are insanely large. Rebasing and upgrading go versions is a nightmare. Look at the diff of this PR.
for reproducibility purposes there are package managers like nix
that do the job. Committing the vendor
folder doesn't help much for that use case I believe.
Thanks, but the vendor folder is there for reproduceability and when upstream libraries would suddenly be gone, it's not going to get removed.
You could just use forks of these dependencies if you worry about original repos disappearing. I do think committing vendor
folder is a bad practice, but if it solves a problem for that's fine.
Summary
checking in the
vendor
folder for agolang
project is similar to committingnode_modules
in ajs
project. This PR gets rid of the vendor directory from this repository and adds/vendor
to.gitignore
Why
Having a
vendor
directory checked in makes reviewing and rebasing upgrading PRs with agolang
bump or a dependency upgrade a nightmare due to the amount of files changed. Since most IDEs are able to generate thevendor
directory automatically I think its better to not check in thevendor
directory.I have no clue about the maintainers take on this opinion but I wanted to start the conversation with this PR. Thank you for your time and patience 🙏🏻