snap fails to process with "bin/desktop-launch $SNAP/app/my-app does not exist lint-snap-v2_command"
See original GitHub issue- Version: 20.0.7
- Target:
build --linux --x64
Now that https://github.com/electron-userland/electron-builder/issues/2596 has been resolved I have tried pushing a packaged .snap
for our app again.
The snap successfully uploads this time, yet it now fails the validation process with the following:
1 Warning:
unknown fields for app 'my-app': 'adapter' lint-snap-v2_apps_unknown (my-app)
1 Fail:
bin/desktop-launch $SNAP/app/my-app does not exist lint-snap-v2_command (my-app)
and 60 passes…
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:18 (10 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kspearrin - please see my last comment for ‘adapter’.
The issue with
bin/desktop-launch $SNAP/app/my-app does not exist lint-snap-v2_command (my-app)
is a bug in our review tools, which I’ll fix. If you request a manual review, I’ll approve it (though see below).If you remove
adapter: none
from your snapcraft.yaml, this will pass again. What is happening is that withadapter: none
a command wrapper is used in the resulting meta/snap.yaml such that it hascommand: command-tusk.wrapper
, which passes review. With the newadapter: none
yaml, snapcraft passes thecommand
unmodified from snapcraft.yaml to meta/snap.yaml (iebin/desktop-launch $SNAP/app/my-app
) and the review tools aren’t splitting on spaces and so it treats the command asbin/desktop-launch $SNAP/app/my-app
when it should bebin/desktop-launch
.The ‘adapter’ issue is a bug in snapcraft: https://bugs.launchpad.net/snapcraft/+bug/1750658. It looks like @kalikiana started to look at it.