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

osutil/disks: allow building on mac os #9696

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

anonymouse64
Copy link
Member

This is to allow to continue compiling the snap command on darwin, as very soon
the snap command imports bootloader, and the bootloader package will start
importing the disks package. None of the functionality from the snap command
however depends on actually using the disks package so it's sufficient to just
provide stub implementations here.

Note that to actually build the snap command on darwin, one must define the tags
nomanagers and nosecboot with -tags nosecboot,nomanagers.

This will fix Mac "sanity" issues in #9695

@anonymouse64 anonymouse64 added Simple 😃 A small PR which can be reviewed quickly UC20 Skip spread Indicate that spread job should not run labels Nov 24, 2020
This is to allow to continue compiling the snap command on darwin, as very soon
the snap command imports bootloader, and the bootloader package will start
importing the disks package. None of the functionality from the snap command
however depends on actually using the disks package so it's sufficient to just
provide stub implementations here.

Note that to actually build the snap command on darwin, one must define the tags
nomanagers and nosecboot with -tags nosecboot,nomanagers.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Copy link
Contributor

@stolowski stolowski left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bboozzoo bboozzoo merged commit 1436714 into snapcore:master Nov 25, 2020
@anonymouse64 anonymouse64 deleted the feature/disks-on-mac-os branch November 25, 2020 20:48
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 Skip spread Indicate that spread job should not run
Projects
None yet
3 participants