Closed Bug 1867217 Opened 2 years ago Closed 2 years ago

Updating an old git-cinnabar from mach bootstrap doesn't work when it was placed there manually

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: sergesanspaille, Assigned: glandium)

Details

Attachments

(1 file)

It fails with the error


Would you like to run a few configuration steps to ensure Git is
optimally configured? (Yn): 
usage: git-cinnabar [-h] [--version [{cinnabar,module,helper}]] {hg2git,git2hg,data,fsck,upgrade,reclone,fetch,bundle,unbundle,rollback,python,download} ...
git-cinnabar: error: argument command: invalid choice: 'self-update' (choose from 'hg2git', 'git2hg', 'data', 'fsck', 'upgrade', 'reclone', 'fetch', 'bundle', 'unbundle', 'rollback', 'python', 'download')
Command '['/home/ssp/.mozbuild/git-cinnabar/git-cinnabar', 'self-update']' returned non-zero exit status 2.

the pre-existing git-cinnabar was 0.5.11 , looks like it doesn't have the self-update switch. removing the directory and bootstrapping again solves the issue, but not in the most elegant way

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED

Because the bot didn't comment when the patch landed on autoland I will leave this message with the revision from autoland:
https://hg.mozilla.org/integration/autoland/rev/dcab4b73233245a6be8d9c1acdbdd87ed93a495b

(to be fair: if git-cinnabar had been bootstrapped originally, the "has a .git directory" condition would have been true). Overall, the new version is more resilient.

Summary: Updating an old git-cinnabar from mach bootstrap doesn't work. → Updating an old git-cinnabar from mach bootstrap doesn't work when it was placed there manually
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: