canonical / rockcraft

Tool to create OCI Images using the language from Snapcraft and Charmcraft.
GNU General Public License v3.0
29 stars 38 forks source link

Support pinning of snap revisions for build-snaps and stage-snaps #350

Open shayancanonical opened 11 months ago

shayancanonical commented 11 months ago

What needs to get done

We are currently able to specify a channel for build-snaps or stage-snaps as follows:

parts:
    charmed-mysql:
         stage-snaps:
              - 8.0/edge

However, we are unable to specify a specific revision of a snap with the above syntax

Why it needs to get done

We have snaps in the Data Platform team that track a major version of a database (e.g. charmed-mysql/8.0). However, the edge risk of the channel can be either 8.0.33 or 8.0.34 based on the snap build date

Since we are using stage-snaps to install the binaries of the snap into our ROCK, we need a way to specify a particular revision of the snap to install from in our rockcraft.yaml file.

amandahla commented 6 months ago

Glad to see that this feature was already asked for, it would be useful to have this.

MiaAltieri commented 1 week ago

This would be great to have