Skip to content

feat: allow specifying a Juju snap revision#185

Open
tonyandrewmeyer wants to merge 4 commits into
canonical:mainfrom
tonyandrewmeyer:feat-juju-specific-revision
Open

feat: allow specifying a Juju snap revision#185
tonyandrewmeyer wants to merge 4 commits into
canonical:mainfrom
tonyandrewmeyer:feat-juju-specific-revision

Conversation

@tonyandrewmeyer
Copy link
Copy Markdown
Contributor

@tonyandrewmeyer tonyandrewmeyer commented Apr 30, 2026

This PR introduces CONCIERGE_JUJU_REVISION and the corresponding config option to allow specifying a specific Juju snap revision to be installed. This allows installation of a specific CLI tool revision, which may be required to work around bugs with Juju (and also effectively provides pinning to a specific revision of Juju, analogous to hash pinning).

Behaviour:

  • Both channel and revision are passed to snap when both are set; Snap uses the revision (channel is used for tracking).
  • An invalid revision causes snap to fail; that error bubbles up through SnapHandler.Prepare → JujuHandler.install → mgr.Prepare and is reported normally.

Fixes #170

tonyandrewmeyer and others added 3 commits April 30, 2026 14:46
govulncheck flags four crypto/x509 and crypto/tls vulnerabilities in
go1.26.1, all fixed in go1.26.2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@james-garner-canonical james-garner-canonical left a comment

Choose a reason for hiding this comment

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

Looks good to me!

If the channel and revision don't match, then we'll fail with an error from snap like error: snap "juju" is not available on 3/stable but other tracks exist., which isn't the friendliest, but seems fine.

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.

Allow installing a custom revision

2 participants