Closed Bug 1556413 Opened 6 years ago Closed 6 years ago

Error: Cask adoptopenjdk8 exists in multiple taps

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect
Not set
normal

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: whimboo, Assigned: robwu)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

mach bootstrap fails for me for Fennec artifact builds:

Error: Cask adoptopenjdk8 exists in multiple taps:
homebrew/cask-versions/adoptopenjdk8
caskroom/versions/adoptopenjdk8
Error running mach:

['bootstrap']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

CalledProcessError: Command '[u'/usr/local/bin/brew', u'cask', u'install', u'adoptopenjdk8']' returned non-zero exit status 1

File "/Users/henrik/code/gecko/python/mozboot/mozboot/mach_commands.py", line 43, in bootstrap
bootstrapper.bootstrap()
File "/Users/henrik/code/gecko/python/mozboot/mozboot/bootstrap.py", line 430, in bootstrap
getattr(self.instance, 'install_%s_packages' % application)()
File "/Users/henrik/code/gecko/python/mozboot/mozboot/osx.py", line 201, in install_mobile_android_artifact_mode_packages
self.package_manager)(artifact_mode=True)
File "/Users/henrik/code/gecko/python/mozboot/mozboot/osx.py", line 365, in ensure_homebrew_mobile_android_packages
self._ensure_homebrew_casks(casks)
File "/Users/henrik/code/gecko/python/mozboot/mozboot/osx.py", line 322, in _ensure_homebrew_casks
return self._ensure_homebrew_packages(casks, extra_brew_args=['cask'])
File "/Users/henrik/code/gecko/python/mozboot/mozboot/osx.py", line 310, in _ensure_homebrew_packages
subprocess.check_call(cmd + ['install', package])
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)

I didn't built for Fennec for a long time, so maybe the changes from bug 1544981 are related here?

Flags: needinfo?(rob)

Bug 1544981 had the same stack and describes the cause of this problem.

If you have an old install, you may have to remove the outdated caskroom/versions tap, as suggested in the commit description of https://hg.mozilla.org/mozilla-central/rev/74dc09642c22 :

caskroom/versions was replaced with homebrew/cask-versions in 2018.
Tap caskroom/versions instead of the old one.

If you have two taps, remove the old one using:

brew untap caskroom/versions
Flags: needinfo?(rob)

Oh ok. I should have fully read the other bug first. So it's clearly a dupe.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE

I need a bug to attach a patch to, and since this bug already describes the problem, I'll use this one.

Assignee: nobody → rob
Status: RESOLVED → REOPENED
Component: General → Bootstrap Configuration
Resolution: DUPLICATE → ---
See Also: → 1544981
Status: REOPENED → ASSIGNED
Attachment #9090339 - Attachment description: Bug 1556413 - Automatically untap homebrew/cask-versions in bootstrap → Bug 1556413 - Automatically untap caskroom/versions in bootstrap
Blocks: 1583275
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/aab1a2203dd5 Automatically untap caskroom/versions in bootstrap r=nalexander
Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: