many: add vendoring of dependencies by default #1785

Merged
merged 11 commits into from Sep 20, 2016

Conversation

Projects
None yet
5 participants
Collaborator

mvo5 commented Aug 30, 2016

This is a preview for the vendoring support.

Contributor

zyga commented Aug 30, 2016

We should also adjust READMEs so that new contributors don't trip over

Collaborator

mvo5 commented Aug 30, 2016

Indeed, sorry for the missing README.md update. In fact I had it updated, but I forgot to git add, here it is now :)

@@ -0,0 +1 @@
+debian/tmp/usr/bin/uboot-go
@zyga

zyga Aug 30, 2016

Contributor

I didn't know there is a debian/not-installed file :-)

Contributor

zyga commented Aug 30, 2016

How do we generate a source tarball with vendored bits in place?

Contributor

vosst commented Sep 4, 2016

It seems like debian/not-installed is not used on trusty. The ppa builds are failing for the /usr/bin/uboot-go not being installed.

Collaborator

mvo5 commented Sep 14, 2016

Looking at the errors it appears that gccgo does not support vendoring. We need to figure out what is doing on here.

Contributor

mwhudson commented Sep 14, 2016

Why are you building with gccgo? Just for powerpc?

I can find you a terrible patch to make vendoring sort of work with gccgo...

Collaborator

mvo5 commented Sep 15, 2016

@mwhudson yeah, just for gccgo. Thanks a bunch for the patch!

LGTM

- golang-yaml.v2-dev,
- golang-gopkg-macaroon.v1-dev,
- golang-gopkg-tomb.v2-dev,
- golang-websocket-dev,
@niemeyer

niemeyer Sep 19, 2016

Contributor

\o/

@@ -12,6 +12,14 @@ export PATH:=${PATH}:${CURDIR}
RELEASE = $(shell lsb_release -c -s)
+# The go tool does not fully support vendoring with gccgo, but we can
+# work around that by constructing the appropriate -I flag by hand.
@niemeyer

niemeyer Sep 19, 2016

Contributor

Yeah, ouch.. nice we can workaround at least.

Contributor

niemeyer commented Sep 19, 2016

Tests are broken.

@niemeyer niemeyer added the Reviewed label Sep 19, 2016

Collaborator

mvo5 commented Sep 20, 2016

Test failures: - Fetch and check assertions for snap "go-example-webserver" (16) (Get https://assertions.ubuntu.com/v1/assertions/snap-revision/SJyJUkh1WaZA4RzHwLtSt5WfWOqi9SWu5Zq5QIvMPgCoTJai2sydKX25o6YHyWIM: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)) looks unrelated.

@niemeyer niemeyer merged commit eff257c into snapcore:master Sep 20, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment