← Back to issue list

snapcraft tour broken when installed from snap

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1674952
Type
issue
State
closed
Author
~popey
Labels
—
Created
Updated
Closed

Current evaluation

Tour failed when snapcraft ran from a snap because it looked in /usr/share/snapcraft/tour. Fixed by merged PR snapcore/snapcraft#1217 (commit d365eb9ed, 'tour: make it work when its a snap'), linked in the closing comment.

Resolution: closed resolved

Reason: The bug was an incorrect hardcoded tour path when snapcraft is snap-installed. snapcore/snapcraft#1217 (commit d365eb9ed, 'tour: make it work when its a snap') corrected the tour directory detection for snap installs, and maintainer sergiusens posted that PR link when closing the bug.

Evaluated by: mr-cal-bot

No scores available.

Issue body

To reproduce:- sudo apt remove snapcraft snap install snapcraft --edge --classic snapcraft tour Expected behaviour:- $ snapcraft tour Snapcraft tour initialized in ./snapcraft-tour/ Instructions are in the README, or http://snapcraft.io/create/#tour Actual behaviour:- $ snapcraft tour [Error 2] No such file or directory: '/usr/share/snapcraft/tour'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Tour failed when snapcraft ran from a snap because it looked in /usr/share/snapcraft/tour. Fixed by merged PR snapcore/snapcraft#1217 (commit d365eb9ed, 'tour: make it work when its a snap'), linked in the closing comment.
stealth/space-bunny-alpha — closed resolved Snapcraft's snap-installed tour failure was fixed by merged PR canonical/snapcraft#1217 (d365eb9ed), correcting tour bootstrapping and repository detection.
stealth/space-bunny-alpha — closed resolved Merged PR canonical/snapcraft#1217 (d365eb9ed) fixed the tour path and bootstrap logic so `snapcraft tour` works when Snapcraft is installed as a snap.
qwen/qwen3.6-35b-a3b — — The snapcraft tour command failed due to a missing directory path when installed via snap. The issue was closed without comments or documented resolution, indicating it was abandoned or fixed in a later release.
qwen/qwen3.6-35b-a3b — — Closed without comment or resolution details. The report described a missing directory error when running snapcraft tour from a snap installation. Likely abandoned or resolved upstream without tracking.
qwen/qwen3.6-35b-a3b — — Abandoned. Closed without comments or a fix. The missing directory error for snap-installed snapcraft tour remains unresolved.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned. The snapcraft tour command fails with a missing directory error when installed via snap, but no fix or follow-up was provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#1217 (confidence 95%)

    Merged commit d365eb9ed 'tour: make it work when its a snap.' cited by the closing maintainer comment.

  • Related To: canonical/snapcraft#1520 (confidence 60%)

    Commit 9696c57e9 later removed the tour assets/feature entirely, superseding the fix years after.

Related issues

Issue Project State Summary Similarity
#1217 tour: make it work when its a snap. snapcraft merged Merged PR #1217 in commit d365eb9ed, fixing tour bootstrapping and repository detection when Snapcraft runs as a snap; resolves LP #1674952.
78%
#1590906 Enable the `snapcraft tour` command snapcraft (launchpad) closed `snapcraft tour` was re-enabled by PR #559 (commit cadeb87ea, "Reenable tour command"), merged by Didier Roche and released in snapcraft 2.11 to xenial -updates; SRU verification passed and LP bug janitored.
74%
#1618126 tour: snapcraft upload does not return a url snapcraft (launchpad) closed Docs nit about the snapcraft tour's publication step was closed by ~sergiusens on 2019-02-07, noting the tour had not been part of snapcraft for some time; the remaining tour assets were later deleted in commit 9696c57e9 (PR #1520).
74%
#1586137 Snapcraft should provide an `tour` subcommand that sets up a basic tour snapcraft (launchpad) closed Implemented in Snapcraft 2.10: PR #513 (7f334a5b1) added the getting-started tour, and PR #559 (cadeb87ea) re-enabled the completed command; verification passed.
73%
#1590903 Improve snapcraft tour material snapcraft (launchpad) closed Tour content expansion shipped: upstream PR ubuntu-core/snapcraft#558 (commit 442b4f12) "Add finale tour examples and tests" fixed this; released in snapcraft 2.11 to xenial -proposed/-updates, verified by ~elopio and marked verification-done.
72%
#1589782 tourdir unittests fail when the package is build in launchpad snapcraft (launchpad) closed Launchpad builds failed the tourdir unit tests because they hardcoded /usr/share/snapcraft/tour. Fixed by merged PR canonical/snapcraft#551 (commit 4ae5e7a09), released in snapcraft 2.11 and verified into xenial-updates.
71%