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

Flutter build broken. error: unknown command "channel" #5

Open
proninyaroslav opened this issue Aug 24, 2021 · 3 comments
Open

Flutter build broken. error: unknown command "channel" #5

proninyaroslav opened this issue Aug 24, 2021 · 3 comments

Comments

@proninyaroslav
Copy link

proninyaroslav commented Aug 24, 2021

I previously used snapcore/action-build to build and it builds Flutter projects successfully. I migrated to snapcraft-multiarch-action as I need arm64 builds, but Flutter build seems to be broken:

...
 Run health check of "gtk-common-themes" snap                                   -
25hgtk-common-themes 0.1-52-gb92ac40 from Canonical✓ installed
Pulling flutter-extension 
+ flutter channel stable
error: unknown command "channel", see 'snap help'.
Failed to run 'override-pull': Exit code was 64.
Error: No snap files produced by build

Here is the full log: https://github.com/proninyaroslav/libretrack/runs/3414045204?check_suite_focus=true
Workflow file: https://github.com/proninyaroslav/libretrack/blob/master/.github/workflows/flutter_release_build.yml#L92
Snapcraft metadata: https://github.com/proninyaroslav/libretrack/blob/master/snap/snapcraft.yaml

@proninyaroslav proninyaroslav changed the title Flutter build broken: error: unknown command "channel" Flutter build broken. error: unknown command "channel" Aug 24, 2021
@proninyaroslav
Copy link
Author

proninyaroslav commented Aug 24, 2021

Looks like as argument escaping problem:

error: unknown command "channel", see 'snap help'.

but the argument belongs to flutter inside Snapcraft extension:

flutter channel stable

@lucyllewy
Copy link
Contributor

I think this is a Snapcraft bug, that isn't due to the packaging here. Can I ask that you post this to the Snapcraft Forum, in the snapcraft category, please?

@proninyaroslav
Copy link
Author

@diddledani
I will post this. But why isn't this bug showing up on the stable channel in snapcore/action-build and in local builds?

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

No branches or pull requests

2 participants