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 notifications@github.com
|
|
@vbatts please help with git-validation On Fri, Jun 17, 2016 at 6:49 AM Jonathan Boulle notifications@github.com
|
|
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 <sur@coreos.com>
Signed-off-by: Sergiusz Urbaniak <sur@coreos.com>
Signed-off-by: Sergiusz Urbaniak <sur@coreos.com>
|
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.
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 <vbatts@hashbangbash.com>
After mulling on opencontainers#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
After mulling on opencontainers/image-spec#148 perhaps removing the for loop is a bit more simple and safe. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
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