Skip to content
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

daemon, interfaces, travis: workaround build ID with Go 1.9, use 1.9 for travis tests #7063

Merged
merged 3 commits into from Jul 4, 2019

Conversation

bboozzoo
Copy link
Collaborator

@bboozzoo bboozzoo commented Jul 4, 2019

Resurrecting #7060

It is assumed that the test binary has a build ID, either added by Go
toolchain (happens by default with Go 1.10+) or by gcc (only when built with
CGO). Since osutil package no longer requires CGO, the latter case does take
place.

When running with Go 1.9, the tests assuming build ID presence fail because the
Go toolchain never added one. Instead of working around the toolchain, add
mocking where needed.

bboozzoo and others added 3 commits July 4, 2019 11:31
It is assumed that the test binary has a build ID, either added by Go
toolchain (happens by default with Go 1.10+) or by gcc (only when built with
CGO). Since osutil package no longer requires CGO, the latter case does take
place.

When running with Go 1.9, the tests assuming build ID presence fail because the
Go toolchain never added one. Instead of working around the toolchain, add
mocking where needed.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
It is assumed that the test binary has a build ID, either added by Go
toolchain (happens by default with Go 1.10+) or by gcc (only when built with
CGO). Since osutil package no longer requires CGO, the latter case does take
place.

When running with Go 1.9, the tests assuming build ID presence fail because the
Go toolchain never added one. Instead of working around the toolchain, add
mocking where needed.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Not _all_ distros are on 1.10 (looking at you, amz2)
@bboozzoo bboozzoo added the Simple 😃 A small PR which can be reviewed quickly label Jul 4, 2019
@bboozzoo bboozzoo requested a review from chipaca July 4, 2019 09:34
Copy link
Contributor

@chipaca chipaca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@bboozzoo bboozzoo merged commit a76b472 into snapcore:master Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly
Projects
None yet
3 participants