Open akcano opened 2 weeks ago
Hi @akcano - please assign this to me. I don't have huge experience with snaps, other than hitting a dead end with https://github.com/canonical/open-documentation-academy/issues/4; but I'll take it on.
Hi @akcano / @degville - I've gone through the tutorial and identified the change required. How do I get the changes done on the Discourse page? I don't see any 'Edit' button as I do see on e.g. the Ruby tutorial page. Are there any specific requirements for screenshots, e.g. sizes, aspect ratios, ...? How do screenshots get uploaded?
Hi @pgfaller!
Do you mean there's no Edit button visible here? https://discourse.ubuntu.com/t/create-your-first-snap/14006
If so, it's a matter of permissions, so @degville may be able to help or at least point at someone who can.
As for the screenshots, nothing in the article looks well-regulated, but I'd venture it that keeping to an accepted format works best (e.g. 16:9
, 4:3
):
If so, it's a matter of permissions, so @degville may be able to help or at least point at someone who can.
Thanks for the ping - and yes, it was a permission issue. I've boosted your credentials on the forum @pgfaller, but let me know if this isn't enough. These tutorials are interesting in that they live in a separate Discourse instance to the Snapcraft Discourse, which can be confusing.
Update the following guide:
Create your first snap
Background
Following the tutorial results in an error after adding the initial command:
Error message:
Online resources do not provide a solution, and using
--debug
does not yield better logs. Investigating the VM environment with--debug
reveals a different error when runningsnap pack
directly under 'prime':The executable is located under
usr/local/bin
. Changing the command to:resolves the issue. The tutorial might be outdated due to the Usrmerge change. Additionally, the next part of the tutorial (https://ubuntu.com/tutorials/create-your-first-snap#5-a-snap-is-made-of-parts) is also affected. Post-Core20, snapd no longer wraps commands to change paths. Specifying both command paths explicitly resolves the packing issue. However, the provided GNU Bash version 4.3 is outdated and incompatible with the Core22 environment. Updating to GNU Bash version 5.2 fixes this problem.
References:
Prerequisites
Familiarity with Snapcraft or snaps is needed to understand the content and test any conjectures. The documentation is Discourse-hosted, so some experience with Discourse is also a plus.