|
|
|
|
|
by paulsamways
4761 days ago
|
|
> and put import ("github.com/go-gl/opengl/gl") directly into your code. Viola! Thus hilarity ensues. Of course it does! All they had to do is fork the project (which they have) and reference that it instead. Viola, problem solved! |
|
You don't bet your production software on things randomly downloaded from the internet at compile time. This is why go never auto-updates when you do "go get", you have to explicitly use "go get -u".
Always localize what you depend on, you never know when a github repo could be pulled, go offline, be renamed, a lawsuit could break out making the library vanish. There are TONS of reasons you should ALWAYS localize your dependencies for building software.
EDIT: This has the amazingly cool side-effect of meaning even on complex projects, you can just do a git clone and then go build FOO and it just works, no nonsense, no fuss, and it is EXACTLY in the state it was when it was checked in -- no surprises.