Douglas Eichelberger
bd5a7f6a14
Update formula_cop.rb
2023-02-21 09:52:20 -08:00
Douglas Eichelberger
387d2f859f
Use exclude_from_registry instead
2023-02-20 18:14:47 -08:00
Douglas Eichelberger
d9db5e8825
Refactor FormulaCop as a mixin
2023-02-20 18:14:47 -08:00
Alex Hedges
5ed06a7956
Handle undeclared POSIXLY_CORRECT in Bash completions
...
As of `brew` 4.0.2, sourcing the Bash completions with `set -eu` causes a
failure if `POSIXLY_CORRECT` is not declared. The check will now
properly handle this situation.
I'm not sure if the resulting code is POSIX-compliant, but it prevents a
breaking change until a better solution can be found.
2023-02-20 18:36:59 -05:00
Mike McQuaid
4eaaa867de
Merge pull request #14709 from issyl0/rubocop-tidying
...
rubocop: Some more config cleanup
2023-02-20 19:35:36 +00:00
BrewTestBot
63c1027b7a
Update RBI files for mime-types-data.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2023-02-20 19:13:10 +00:00
BrewTestBot
26039ed257
brew vendor-gems: commit updates.
2023-02-20 19:07:13 +00:00
dependabot[bot]
20784364aa
build(deps): bump mime-types-data in /Library/Homebrew
...
Bumps [mime-types-data](https://github.com/mime-types/mime-types-data ) from 3.2022.0105 to 3.2023.0218.1.
- [Release notes](https://github.com/mime-types/mime-types-data/releases )
- [Changelog](https://github.com/mime-types/mime-types-data/blob/main/History.md )
- [Commits](https://github.com/mime-types/mime-types-data/compare/v3.2022.0105...v3.2023.0218.1 )
---
updated-dependencies:
- dependency-name: mime-types-data
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 19:03:05 +00:00
Mike McQuaid
d292dbdc2b
Revert "Fix permissions before moving extracted files."
2023-02-20 17:20:57 +00:00
Mike McQuaid
ddd328ed7d
Merge pull request #14725 from Bo98/api-link_overwrite
...
Support `link_overwrite` and `conflicts_with` in API
2023-02-20 16:44:11 +00:00
Bo Anderson
cacd7194f6
Support link_overwrite and conflicts_with in API
2023-02-20 16:28:07 +00:00
Mike McQuaid
37b4780037
dev-cmd/contributions: fix spacing.
...
Otherwise this fails the documentation lint.
2023-02-20 16:16:08 +00:00
Mike McQuaid
14a11f5c72
formulary: use default bottle root_url.
...
We never change this value in `formula.json` so ignore it for security.
2023-02-20 10:03:23 +00:00
Mike McQuaid
e51ee89a90
Merge pull request #14714 from EricFromCanada/linux-omit-home
...
docs: add missing template file edits
2023-02-20 09:56:04 +00:00
Mike McQuaid
7f1a0936e5
Merge pull request #14702 from issyl0/greedy-short-g
...
cmd/(outdated,upgrade): Document `-g` as a shorter `--greedy` for Casks
2023-02-20 09:54:18 +00:00
Mike McQuaid
315e10cbc4
Merge pull request #14712 from issyl0/contributions-primary-repos
...
dev-cmd/contributions: Add `--repositories=primary` to scan only `brew,core,cask`
2023-02-20 09:53:50 +00:00
Mike McQuaid
b9a291a82b
Merge pull request #14711 from reitermarkus/extract-permissions
...
Fix permissions before moving extracted files.
2023-02-20 09:52:40 +00:00
Mike McQuaid
aaec4014fd
Merge pull request #14710 from issyl0/rubocop-excludes
...
rubocop: Clean up some `Exclude`s
2023-02-20 09:51:11 +00:00
Mike McQuaid
3d3b20b6d6
Merge pull request #14675 from Bo98/api-bash
...
Further improvements to API handling in shell
2023-02-20 09:45:56 +00:00
Mike McQuaid
27cad91efb
Merge pull request #14705 from Homebrew/spdx-update
...
spdx: update license data.
2023-02-20 09:42:23 +00:00
Mike McQuaid
85f9bb8420
Merge pull request #14704 from dduugg/rubocop-cleanup
...
Remove redundant rubocop configs
2023-02-20 09:41:51 +00:00
Mike McQuaid
ae9763d9ce
Merge pull request #14684 from MikeMcQuaid/no_analytics_uuid
...
analytics: remove UUID.
2023-02-20 09:18:47 +00:00
Mike McQuaid
25bf83e58d
Merge pull request #14686 from MikeMcQuaid/build_from_source_warnings
...
Warn more when building from source
2023-02-20 09:06:09 +00:00
Mike McQuaid
57844530a9
analytics: remove UUID.
...
We don't use this at all with InfluxDB and don't need it any more for GA
so let's just remove it.
2023-02-20 09:05:15 +00:00
EricFromCanada
0d2b74d7e7
docs: add missing template file edits
...
plus extra instructions for completions file editing
2023-02-19 16:22:39 -05:00
Issy Long
04e476eb84
dev-cmd/contributions: Add --repositories=brew,core,cask shorthand
...
- For annual "has this person contributed enough", we focus on the main
Homebrew repos: brew, core and cask. Let's make that easier than
`--repositories=brew,core,cask`.
2023-02-19 18:36:13 +00:00
Markus Reiter
7c5b6fd10d
Add signatures for extraction methods.
2023-02-19 19:29:21 +01:00
Markus Reiter
eaca86b0a8
Fix permissions before moving extracted files.
2023-02-19 19:29:21 +01:00
Issy Long
18becae15a
rubocop: Clean up Lint/RequireRelativeSelfPath config
...
- The Actions logs link for the Homebrew/formula-analytics CI failure is long expired.
- I removed the excludes, ran `brew tap homebrew/formula-analytics` and then
`brew style $(brew --repo homebrew/formula-analytics)` and there were no
errors.
- Hence, I think we can clean this stanza up entirely.
2023-02-19 16:33:31 +00:00
Issy Long
f8654bd363
rubocop: In-line disables of Metrics/{Module,Block,Class}Length
...
- We're not going to make the really long things be any shorter any time soon.
- The instructions in issue 14685 say, pragmatically, "disable all the rubocop
rules we're never going to realistically fix e.g. Metrics/ClassLength". But
that felt like a slippery slope to more _really_ long modules/classes/blocks,
and the limits are here for a reason.
2023-02-19 16:33:23 +00:00
Issy Long
60d9443d35
rubocop: Lint/NestedMethodDefinition excludes are not needed
2023-02-19 16:33:22 +00:00
Issy Long
4a8384e8a8
rubocop: In-line disables of Lint/ConstantDefinitionInBlock
2023-02-19 16:33:22 +00:00
Issy Long
6797f30bbf
rubocop: In-line disables of Naming/MemoizedInstanceVariableName
2023-02-19 16:33:21 +00:00
Issy Long
d84d157aaa
rubocop: Disable Bundler/GemFilename
...
- We have `gems.rb` and `Gemfile` and disabling the rule in `gems.rb` directly
still errors?
2023-02-19 16:33:20 +00:00
Issy Long
364c3462b7
rubocop: Naming/PredicateName allows is_a? by default
...
https://github.com/rubocop/rubocop/blob/master/lib/rubocop/cop/naming/predicate_name.rb#L16
2023-02-19 16:14:14 +00:00
Issy Long
8399c58d23
rubocop: Clean up non-existent files/dirs from excludes
2023-02-19 15:53:21 +00:00
Bo Anderson
dc286a11ff
Add shell optimisation for --cellar
2023-02-19 05:38:16 +00:00
Bo Anderson
c2342eca91
Further improvements to API handling in shell
2023-02-19 05:38:13 +00:00
BrewTestBot
21c09b7ac7
spdx: update license data.
...
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml ).
2023-02-19 00:13:29 +00:00
Douglas Eichelberger
7fbbf27f8d
Remove redundant rubocop configs
2023-02-18 15:14:04 -08:00
Issy Long
44b0050b94
cmd/(outdated,upgrade): Document -g as a shorter --greedy for Casks
...
- Fixes https://github.com/Homebrew/brew/issues/ 14682.
2023-02-18 18:47:49 +00:00
Mike McQuaid
80232af31d
More tweaks to testing output and speed
...
- Never bother to do `brew cleanup` after `brew install`
- Skip `brew test-bot --only-cleanup-before` in more places it's not
needed
- Move `brew config`/`brew doctor` into the default formula run
(through `brew test-bot --only-setup`)
- Install `buildpulse-test-reporter` rather than letting `brew tests`
do it
- Improve the formatting of the `brew tests` step
- Further shorten the code coverage filenames
- Don't output BuildPulse results upload status unless failed
2023-02-17 16:17:45 +00:00
Mike McQuaid
fbdec8738d
Warn more when building from source
...
We warn sometimes when we tell people to build from source and it's
not supported but we don't actually warn non-developers when invoking
the various install commands so: let's start doing so.
While we're here, also update the existing messaging to reflect the fact
we're on Mastodon now too and we don't want maintainers being
individually bothered about errors either.
I've tried to balance having messages here vs. having them be so long
at the beginning of installation that they will be missed or be overly
obnoxious.
2023-02-17 16:10:38 +00:00
Mike McQuaid
a743e9277f
workflows/tests: faster, more reliable tests.
...
- Extract update tests into separate tests.
- Make `brew tests --online` run only once in its own job. This job
could be made non-required to fight flakiness.
- Split up the various macOS runs into several steps now that we have
more parallel macOS workers available.
- Cleanup some flaky tests.
2023-02-17 15:26:18 +00:00
Mike McQuaid
a59f5eb524
Merge pull request #14674 from issyl0/shorter-code-coverage-output
...
simplecov: Set `command_name` shorter than "all of the file paths ever"
2023-02-17 14:33:00 +00:00
Issy Long
7ba8c1cd9a
simplecov: Appease brew style
2023-02-17 14:05:04 +00:00
Mike McQuaid
d60d2fe158
cmd/--version: don't always output homebrew/core.
...
This is more confusing than helpful if it's untapped for API usage.
2023-02-17 13:39:57 +00:00
Issy Long
2986c7d736
simplecov: Even shorter command_names
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-17 13:36:19 +00:00
Bo Anderson
971969541e
Merge pull request #14679 from Bo98/api-source-fetch
...
formula_installer: fix resource fetching for source builds under API
2023-02-17 13:14:22 +00:00
Mike McQuaid
897121de88
Merge pull request #14678 from apainintheneck/add-cask-api-loader-tests
...
cask: add FromAPILoader tests
2023-02-17 12:34:22 +00:00