-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
please vendor dependencies #6
Comments
Good idea! Will do. The Homebrew packages for Algernon has versions pinned already, but I think vendoring them with Glide is an even better idea. |
@xyproto i noticed recently you forked the sass package to avoid the git submodule, but i asked upstream to change it, and they did. so you don't need to use a fork any more :-) |
Thanks for the issue for the sass package, I updated the import so that it imports from I also added a Would you recommend checking in a |
Do you also happen to know is srlt compares favorably to glide? I am new to both. |
@xyproto - not clear where github.com/gophertown/fsnotify would come from. i have never heard of srlt - but i know glide is becoming popular with many projects. there are pros and cons of vendoring the code itself. its for you to decide as a maintainer. if you vendor the code, you have to update it sometimes, but it allows someone to build the code even if the upstream has changed api or even gone (like github.com/gophertown/fsnotify is gone). if you don't vendor the code, the repo is smaller. but it's slightly more difficult for someone to build a particular version (especially anyone trying to package the app), and it is possible some upstream could go away and break the build. but at least if you pin the versions in glide (or similar tool) then you worry less about changing APIs. |
fwiw, i ended up writing this to package algernon in my gentoo overlay - https://github.com/offblast/overlay/blob/master/www-servers/algernon/algernon-1.0.ebuild notice i did something similar to the homebrew file - download each pinned tarball of each dependency. if algernon vendored dependencies in |
Started using Please test if it works correctly for you, if you have the chance. |
@xyproto, it seems now pongo2 is a git submodule and not directly vendored. can it be directly vendored? |
* Got a "No submodule mapping found" error. * Removed the git submodule from the index. * Re-added the dependency with "glide up". * Should fix issue #6
Re-added the vendored dependency. Even though there were no |
please vendor the dependencies of algernon, so that it is less likely to break when dependencies change.
glide is a great tool for this.
if you don't wish to vendor dependencies directly in algernon (which i would recommend you do), please at least create package log files with e.g. glide, so that dependency versions are pinned.
The text was updated successfully, but these errors were encountered: