-
Notifications
You must be signed in to change notification settings - Fork 652
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
Vendor dependencies, add hacking guide #148
Conversation
@vbatts
Can I somehow tell it to ignore any files in |
On Thu, Jun 16, 2016 at 02:54:51AM -0700, Sergiusz Urbaniak wrote:
Plugged in yesterday's Git Rev News 1: manul 2, which uses |
Committing vendored code is quite idiomatic in Go. We do this in many other projects. Using git submodules for vendoring has been tried before (including me) with mixed/bad results, see https://groups.google.com/forum/m/#!topic/go-package-management/KR2zrSIsRho for details. |
I think we should just fix git-validation On 17 June 2016 at 15:43, Sergiusz Urbaniak [email protected]
|
@vbatts please help with git-validation On Fri, Jun 17, 2016 at 6:49 AM Jonathan Boulle [email protected]
|
man. Since it is using |
On Tue, Jun 21, 2016 at 10:53:28AM -0700, Vincent Batts wrote:
I think the validator checks each commit, so you'd probably need to |
Signed-off-by: Sergiusz Urbaniak <[email protected]>
Signed-off-by: Sergiusz Urbaniak <[email protected]>
Signed-off-by: Sergiusz Urbaniak <[email protected]>
What a mess, I did some duck-taping to hopefully fix everything:
I am a bit worried whether this EOL-sed-fix will work on OSX though.
|
@s-urbaniak are we concerned about OSX? 😉 |
glide update --strip-vcs --strip-vendor --update-vendored --delete | ||
glide-vc --only-code --no-tests | ||
# see http://sed.sourceforge.net/sed1line.txt | ||
for f in $$(find vendor -type f); do sed -i -e :a -e '/^\n*$$/{$$d;N;ba' -e '}' $$f; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to use find's -exec
instead of the for loop (-execdir
is safer, but not in POSIX). Although you may have to keep the for loop, because -i
is not in POSIX for sed.
LGTM (but do we need to worry about #148 (comment) ? I will leave it to @vbatts or one of the OS X users to merge) |
For loops are generally fine, though this would break if there were a path that had a space in it. That's generally frowned upon though 🤓. |
After mulling on opencontainers#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
After mulling on opencontainers#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <[email protected]>
This PR vendors all OCI image spec Go dependencies using glide and glide-vc.
Additionally it adds a hacking guide since we accumulated quite some tools/prerequisites for various make targets. The hacking guide documents them.
Fixes #76, #162