question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
jdstrandcommented, Feb 22, 2018

@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 with adapter: none a command wrapper is used in the resulting meta/snap.yaml such that it has command: command-tusk.wrapper, which passes review. With the new adapter: none yaml, snapcraft passes the command unmodified from snapcraft.yaml to meta/snap.yaml (ie bin/desktop-launch $SNAP/app/my-app) and the review tools aren’t splitting on spaces and so it treats the command as bin/desktop-launch $SNAP/app/my-app when it should be bin/desktop-launch.

1reaction
jdstrandcommented, Feb 22, 2018

The ‘adapter’ issue is a bug in snapcraft: https://bugs.launchpad.net/snapcraft/+bug/1750658. It looks like @kalikiana started to look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found