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

Fix brew install warning #118

Merged

Conversation

marciniwanicki
Copy link
Contributor

Describe your changes
An error was printed when called brew install swiftlint.rb. It turned out brew has now install --formula parameter which allows to install from local formula file.

...
Error: Failed to load cask: swiftlint.rb
Cask 'swiftlint' is unreadable: wrong constant name #<Class:0x000000013f213780>
Warning: Treating swiftlint.rb as a formula.
...

Testing performed

  • Ensure all CI checks pass
  • Inspect CI logs, ensure no error or warning is reported

@codecov
Copy link

codecov bot commented Nov 12, 2022

Codecov Report

Base: 96.69% // Head: 96.69% // No change to project coverage 👍

Coverage data is based on head (4baedea) compared to base (a54056a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage   96.69%   96.69%           
=======================================
  Files          50       50           
  Lines        2750     2750           
=======================================
  Hits         2659     2659           
  Misses         91       91           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@marciniwanicki marciniwanicki force-pushed the mi/fix-brew-install-error branch 2 times, most recently from 5b88361 to 4631254 Compare November 12, 2022 21:07
@marciniwanicki marciniwanicki marked this pull request as ready for review November 12, 2022 21:07
An error was printed when called `brew install swiftlint.rb`. It turned out brew has now `install --formula` parameter which allows to install from local formula file.

```bash
...
Error: Failed to load cask: swiftlint.rb
Cask 'swiftlint' is unreadable: wrong constant name #<Class:0x000000013f213780>
Warning: Treating swiftlint.rb as a formula.
...
```

Test Plan:
- Ensure all CI checks pass
- Inspect CI logs, ensure no error or warning is reported

Signed-off-by: Marcin Iwanicki <miwanicki1@bloomberg.net>
Copy link
Contributor

@kwridan kwridan left a comment

Choose a reason for hiding this comment

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

TIL:

brew install --help
...
--formula, --formulae        Treat all named arguments as formulae.

@marciniwanicki marciniwanicki merged commit 2ba20ae into bloomberg:main Nov 12, 2022
@marciniwanicki marciniwanicki deleted the mi/fix-brew-install-error branch November 12, 2022 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants