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

fix(snap): remove incorrect usage of --target-arch for snapcraft #41

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

cjp256
Copy link
Contributor

@cjp256 cjp256 commented Aug 13, 2020

Snapcraft has ignored the target-arch flag, which works in very
limited circumstances, with destructive mode. Snapcraft considers
it unsupported and will not be fixed in its current form.

Recently snapcraft regarded improper usage of this as a hard error
instead of silently ignoring, which broke users of app-builder. We
reverted that to simply warn, but this fix is to remove its usage
from app-builder.

If the user is targeting an arch that is not the host arch,
error out with a nice message.

However, it does require that --arch with snap must use the
scheme provided by go. If there are a set of supported architecture
options somewhere, I can update to ensure that they map to GOARCH.

Closes: #40

Signed-off-by: Chris Patterson [email protected]

Snapcraft has ignored the target-arch flag, which works in very
limited circumstances, with destructive mode.  Snapcraft considers
it unsupported and will not be fixed in its current form.

Recently snapcraft regarded improper usage of this as a hard error
instead of silently ignoring, which broke users of app-builder. We
reverted that to simply warn, but this fix is to remove its usage
from app-builder.

If the user is targeting an arch that is not the host arch,
error out with a nice message.

However, it does require that --arch with `snap` must use the
scheme provided by go. If there are a set of supported architecture
options somewhere, I can update to ensure that they map to GOARCH.

Closes: develar#40

Signed-off-by: Chris Patterson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't publish Snap with snapcraft version 4.0.4
2 participants