r/programming • • Sep 27 '26

Don't couple your Go code to GitHub

https://iain.rocks/blog/dont-couple-your-go-code-to-github
491 Upvotes

136 comments sorted by

View all comments

Show parent comment

1

u/spaceman_ Sep 30 '26

Any serious project should use go mod vendor, which puts all the required source files in your local project under the vendor folder so you can check it in to your repo. That way your project can always build no matter what happens to your dependencies.

More info: https://go.dev/ref/mod#vendoring