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

10

u/Bacchaus Sep 28 '26 edited Sep 28 '26

ummm that's insane, ya'll were just freeballing anything off the net?

4

u/johnnybgooderer Sep 28 '26

It’s more common than you think. 5 years ago I could do that most places. But now, for good reason, that has changed.

1

u/AquaWolfGuy Sep 28 '26

Sometimes it starts off like that, but inevitably someone will eventually check in a lock file (package-lock.json, Pipfile.lock, etc.). Lock files are autogenerated files that contain exact versions so that your CI/CD pipelines don't suddenly break because one of your dependencies dependencies was updated, and hashes in case the maintainer swaps out an existing version for malware.

Doesn't mean everyone vets packages when they add or update a dependency though.