Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mermaid-cli 8.8.4 (new formula) #67804

Closed
wants to merge 2 commits into from
Closed

mermaid-cli 8.8.4 (new formula) #67804

wants to merge 2 commits into from

Conversation

BastianZim
Copy link
Contributor

mermaid-cli 8.8.4 (new formula)

Add formula

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

@BrewTestBot BrewTestBot added new formula PR adds a new formula to Homebrew/homebrew-core nodejs Node or npm use is a significant feature of the PR or issue labels Dec 27, 2020
@BastianZim
Copy link
Contributor Author

@carlocab This would be the new PR.

Thanks again for your help and sorry for the extra work.

@BastianZim BastianZim mentioned this pull request Dec 27, 2020
5 tasks
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks again, @BastianZim.

Formula/mermaid-cli.rb Outdated Show resolved Hide resolved
Formula/mermaid-cli.rb Outdated Show resolved Hide resolved
@carlocab carlocab added the CI-force-arm [DEPRECATED] Don't pass --skip-unbottled-arm to brew test-bot. label Dec 27, 2020
@BastianZim
Copy link
Contributor Author

@carlocab Seems like chromium is not yet available for ARM: https://github.com/Homebrew/homebrew-core/pull/67804/checks?check_run_id=1614088150#step:7:563

Is there anything I can do or should I just report that to the maintainers?

@carlocab
Copy link
Member

Yes, I noticed... https://chromium.googlesource.com/chromium/src.git/+/master/docs/mac_arm64.md

Let's just wait and see if others have feedback on this before we decide what to do next.

@carlocab
Copy link
Member

@fxcoudert do you have an opinion on this? It seems like a popular piece of software: https://www.npmjs.com/package/@mermaid-js/mermaid-cli

@BastianZim
Copy link
Contributor Author

BastianZim commented Dec 27, 2020

Just to add: The problem comes from the package puppeteer which interacts with Chromium.
Also see: puppeteer/puppeteer#6622

@chrmoritz
Copy link
Contributor

I think the questions is here more if we want to ship the bottle with a downloaded third-party compiled chromium binary here or do we want to just set the PUPPETEER_SKIP_CHROMIUM_DOWNLOAD env var and maybe tell the user in a caveat how to point it to a locally installed Chrom{e,ium] with PUPPETEER_EXECUTABLE_PATH.

@fxcoudert
Copy link
Member

@chrmoritz let's try to minimise the number of chromium builds we distribute as part of other things

@carlocab
Copy link
Member

carlocab commented Dec 27, 2020

Sounds like pupeteer downloads and installs a pre-compiled Chromium binary, though. Does that disqualify this from homebrew-core?

Not to mention that forcing it not to download Chromium means we'd have to provide one during the test.

@chrmoritz
Copy link
Contributor

chrmoritz commented Dec 27, 2020

I think that wouldn't be a problem, since puppeteer will also download it's precompiled chromium binary during runtime, if PUPPETEER_EXECUTABLE_PATH doesn't point to a valid Chrom{e,ium] executable. PUPPETEER_SKIP_CHROMIUM_DOWNLOAD just skips the download during the installation, if I read the code at https://github.com/puppeteer/puppeteer/blob/f63a123ecef86693e6457b07437a96f108f3e3c5/src/node/Launcher.ts#L606 correctly.

However it will never work on arm macs, because it hardcodes /usr/bin/chromium-browser on every arm64 system: https://github.com/puppeteer/puppeteer/blob/f63a123ecef86693e6457b07437a96f108f3e3c5/src/node/Launcher.ts#L107

Formula/mermaid-cli.rb Outdated Show resolved Hide resolved
mermaid-cli 8.8.4 (new formula)

Add bin to test

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
@fxcoudert fxcoudert removed the CI-force-arm [DEPRECATED] Don't pass --skip-unbottled-arm to brew test-bot. label Dec 28, 2020
@chenrui333 chenrui333 added the CI-requeued PR has been re-added to the queue label Dec 28, 2020
@BastianZim
Copy link
Contributor Author

Hi everybody, just wanted to check if there is anything else I can do or if we're just waiting for further feedback concerning ARM?

@chenrui333
Copy link
Member

chenrui333 commented Dec 30, 2020

Nope. Good to 🚢 !!

Thanks @BastianZim for your contribution to Homebrew! 🎉 🥇

Without awesome contributors like you, it would be impossible to maintain Homebrew to the high level of quality users have come to expect. Thank you!!!!

@BrewTestBot
Copy link
Member

:shipit: @chenrui333 has triggered a merge.

@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Jan 30, 2021
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI-requeued PR has been re-added to the queue new formula PR adds a new formula to Homebrew/homebrew-core nodejs Node or npm use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants