Please switch the git repo and ref to lp:snap-core22 for the core22 snap (not possible manually)

Asked by Łukasz Zemczak

Somewhat related to .

Since our core22 snap [1] is rather special, it seems I can't change anything in the recipe as I am getting errors regarding the snap recipe series (as it's hacked in to be 'hirsute', which is not selectable otherwise). We need to change both the git repository and git ref to a proper one.

Could someone help us out? We need:
git repository:
git ref: master

As said, I even tried using LP API for this, but I'm getting `lazr.restfulclient.errors.PreconditionFailed: HTTP Error 412: Precondition Failed`, possible for the same reasons.

Thank you!


Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Łukasz Zemczak
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Łukasz Zemczak (sil2100) said :

Bumping the LP question - this still needs to be done and it would be nice to know maybe how I can do that myself?

Revision history for this message
Colin Watson (cjwatson) said :

I suspect you were trying to change `git_repository` and `git_path` separately, which IIRC doesn't work because it tries to validate constraints one by one. I've made the change you requested as follows:

    >>> core22 = lp.load('/~ubuntu-core-service/+snap/core22')
    >>> core22.git_ref = '/~canonical-foundations/snap-core22/+git/snap-core22/+ref/master'
    >>> core22.lp_save()

Revision history for this message
Łukasz Zemczak (sil2100) said :

Thank you!