Skip to content

Conversation

@upils
Copy link
Contributor

@upils upils commented Feb 12, 2025

Users must implement the basic craft-application flow to successfully build a snap with this configuration.

@upils upils self-assigned this Feb 12, 2025
@upils upils requested a review from lengau February 12, 2025 10:38
confinement: strict
grade: devel
license: GPL-3.0
compression: lzo
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lengau I am not sure about this but I understand that the snap taking a bit more space to get a faster start-up time is an interesting trade off for us.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I measured this for Charmcraft I determined it was pretty irrelevant for our own snaps, so I don't really care either way. (zstd was better for our use case, but alas...)

Users must implement the basic craft-application flow to successfuly build a snap with this configuration.

Signed-off-by: Paul Mars <paul.mars@canonical.com>
@upils upils force-pushed the work/add-snap-conf branch from 17f920c to a03f60d Compare February 12, 2025 15:18
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
confinement: strict
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether we should just put classic here since all of our snaps currently are classic...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered too but then saw that our newest app is strict and was able to get away with some plugs. So maybe we should keep strict by default and have the action to set another confinement a conscious decision.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or does a snapcraft.yaml boilerplate that would work for our apps belong in https://github.com/canonical/craftcraft? It already has one, but is missing recent updates like the parts for libgit2, git, chisel, and the auto-completer.

I'm fine to have starbase's snapcraft.yaml be the absolute minimum to snap a UV project. I'd even be fine to drop the craft-cli autocompleter.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that craftcraft was removed, starbase is the next best home but I'm still not convinced it belongs here.

I'm still unsure of the value proposition of this snapcraft.yaml since it's somewhere in between a generic uv application and a craft app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This semi-generic snapcraft.yaml serves several purposes:

  • when starting a new craft application, it makes it easier to get a basic snap. Without this file users have to write one from scratch.
  • propose a template implementing as much as possible what we consider the basic features of our snaps (auto-completion, platforms list, license, etc.)
  • help spot differences in our snapcraft.yaml when rebasing on starbase and so help harmonize them.

@lengau lengau requested review from mr-cal and tigarmo February 13, 2025 14:57
@lengau
Copy link
Collaborator

lengau commented Feb 13, 2025

Adding @tigarmo and @mr-cal since they may have good thoughts from their apps' perspectives of what should be in standard.

@mr-cal mr-cal removed their request for review May 21, 2025 12:25
@mr-cal
Copy link
Collaborator

mr-cal commented May 21, 2025

Removing my review request because I've left comments in existing threads.

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

Successfully merging this pull request may close these issues.

4 participants