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 https://answers.launchpad.net/launchpad/+question/698178 .

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: https://code.launchpad.net/~canonical-foundations/snap-core22/+git/snap-core22
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!

[1] https://launchpad.net/~ubuntu-core-service/+snap/core22

Question information

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

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 :
#2

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 :
#3

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 :
#4

Thank you!