Issy Long
53e363258a
Merge pull request #17705 from Homebrew/rubocop-avoid-fileutils-rmrf
...
rubocop: Discourage the use of `rm_f` and `rm_rf` in formulae and casks
2024-08-01 18:42:03 +01:00
Issy Long
0872966c27
Avoid double parentheses for eg. (path/here/).rmtree
corrections
2024-08-01 18:28:01 +01:00
Issy Long
7404735654
rubocops/no_fileutils_rmrf: Fix rmtree
on a method returning Pathname
...
- Tidy up the node matchers. Either `FileUtils.rm_rf` or `rm_rf` on a
`Pathname` instance or `self`.
2024-08-01 18:28:01 +01:00
Issy Long
83e21fba11
rubocop/no_fileutils_rmrf: Handle rmtree
as an instance method
2024-08-01 18:28:00 +01:00
Issy Long
0889df837a
Casks use FileUtils.rm_rf
& Pathname.rmtree
still
2024-08-01 18:28:00 +01:00
Issy Long
99c5cc99b5
rubocop/no_fileutils_rmrf: Scope to just formulae and casks
2024-08-01 18:28:00 +01:00
Issy Long
14dd3592dc
rubocop/no_fileutils_rmrf: Discourage Pathname#rmtree
too
...
- This [seems to be](https://ruby-doc.org/3.3.4/exts/pathname/Pathname.html#method-i-rmtree )
equivalent to `FileUtils#rm_r`, so replace it with that.
2024-08-01 18:28:00 +01:00
Issy Long
cc7784605d
rubocop/no_fileutils_rmrf: Reorganize tests
2024-08-01 18:28:00 +01:00
Issy Long
ebd9d183dc
rubocop/no_fileutils_rmrf: Extend to cover FileUtils#rmtree
too
2024-08-01 18:28:00 +01:00
Issy Long
f4e4808553
rubocop/no_fileutils_rmrf: Extend to cover FileUtils#rm_f
too
2024-08-01 18:28:00 +01:00
Issy Long
e6976ae3d1
rubocop: Discourage the use of FileUtils.rm_rf
...
- This cop checks for the use of `FileUtils.rm_rf` and suggests using
`FileUtils.rm_r` because we should know if we couldn't delete a
thing for some reason, not just force it.
2024-08-01 18:27:59 +01:00
Patrick Linnane
885cfb79df
Merge pull request #17927 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11504
2024-08-01 09:11:34 -07:00
Patrick Linnane
b0decfff55
Merge pull request #17929 from Homebrew/dependabot/bundler/Library/Homebrew/rexml-3.3.4
2024-08-01 09:08:08 -07:00
BrewTestBot
93aa5b0f41
brew vendor-gems: commit updates.
2024-08-01 15:56:59 +00:00
BrewTestBot
192609d75e
brew vendor-gems: commit updates.
2024-08-01 15:56:56 +00:00
dependabot[bot]
2d76921a13
build(deps-dev): bump rexml from 3.3.2 to 3.3.4 in /Library/Homebrew
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.3.2 to 3.3.4.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.3.2...v3.3.4 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-01 15:50:50 +00:00
dependabot[bot]
04a9d31b4d
build(deps-dev): bump sorbet in /Library/Homebrew
...
Bumps [sorbet](https://github.com/sorbet/sorbet ) from 0.5.11501 to 0.5.11504.
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-01 15:50:14 +00:00
William Woodruff
e66df8cfb1
attestation: specialize error when gh
is old
...
See https://github.com/Homebrew/homebrew-core/issues/177384#issuecomment-2263195832 .
Signed-off-by: William Woodruff <william@yossarian.net>
2024-08-01 11:36:36 -04:00
William Woodruff
d29acdd711
Merge pull request #17922 from Homebrew/ww/pydocs
2024-08-01 11:04:44 -04:00
William Woodruff
52fd495a5c
fix header + anchor
...
Technically PEP 668 isn't unique to 3.12 anyways.
Signed-off-by: William Woodruff <william@yossarian.net>
2024-08-01 10:10:32 -04:00
Patrick Linnane
0ded3157fc
Merge pull request #17924 from Homebrew/sponsors-maintainers-man-completions
2024-07-31 17:54:07 -07:00
BrewTestBot
f8652a2757
Update manpage and completions.
...
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml ) workflow.
2024-08-01 00:07:43 +00:00
William Woodruff
c354c288ae
Homebrew-and-Python: more PEP 668 guidance
...
Signed-off-by: William Woodruff <william@yossarian.net>
2024-07-31 14:26:05 -04:00
Patrick Linnane
a396c2f8a2
Merge pull request #17918 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11501
2024-07-31 10:19:40 -07:00
BrewTestBot
02e90c53eb
brew vendor-gems: commit updates.
2024-07-31 17:08:33 +00:00
dependabot[bot]
6eb7e58bfd
build(deps-dev): bump sorbet in /Library/Homebrew
...
Bumps [sorbet](https://github.com/sorbet/sorbet ) from 0.5.11500 to 0.5.11501.
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-31 17:06:57 +00:00
Patrick Linnane
1af028f18a
Merge pull request #17920 from Homebrew/tapioca-args-fix
2024-07-31 09:53:41 -07:00
Bo Anderson
05d6c06c84
tapioca/compilers/args: remove non-AbstractCommand handling
2024-07-31 17:30:31 +01:00
Rylan Polster
278bd2f1c2
Merge pull request #17919 from Homebrew/ww/backslash
2024-07-31 12:25:47 -04:00
William Woodruff
9d313b23eb
sandbox: disallow backslashes in path filter names
...
This should really be an allowlist rather than a denylist,
but for the time being this at least prevents someone from
causing an obtuse sandbox error by naming a file something like
"foo\".
Signed-off-by: William Woodruff <william@yossarian.net>
2024-07-31 12:10:51 -04:00
Markus Reiter
4a1643e7ad
Refactor condition.
2024-07-30 21:48:59 +02:00
Markus Reiter
77e3a405f5
Remove unneeded rules.
2024-07-30 21:44:10 +02:00
Markus Reiter
40d55f8035
Change type name.
2024-07-30 21:43:30 +02:00
Markus Reiter
3b4e1cb573
Share code between cask token and formula name audits.
2024-07-30 21:41:15 +02:00
Mike McQuaid
ca22e9ccfa
Merge pull request #17904 from Homebrew/lock_improvements
2024-07-30 18:02:02 +01:00
Patrick Linnane
c609f24efb
Merge pull request #17908 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11500
2024-07-30 09:53:58 -07:00
Patrick Linnane
65725edcdd
Merge pull request #17911 from Homebrew/dependabot/bundler/Library/Homebrew/racc-1.8.1
2024-07-30 09:52:03 -07:00
Mike McQuaid
e3a1a9dccf
Improve locking UX
...
My experience recently playing around with our locking behaviour is
that, while mostly seamless and not seen by users, it's leaks
implementation details a bit too heavily.
As a result, the following improvements are in this commit:
- Ensure that, whenever possible, we tell the user the actual command
that is holding a given lock instead of the lock name (an internal
implementation detail)
- Make the locking error output a little more consistent and user
friendly
- Add a `DownloadLock` class to simplify locking downloads
- Add a `HOMEBREW_LOCK_CONTEXT` variable to allow adding additional
context for logging error messages
- Lock paths and leave deciding how this translates to lock names up
to the locking code itself
- Lock the Cellar/Caskroom paths explicitly rather than implicitly
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-07-30 17:51:02 +01:00
Patrick Linnane
5d2195828f
Merge pull request #17881 from Homebrew/npm-args-docs
2024-07-30 09:46:47 -07:00
BrewTestBot
88eb68b799
Update RBI files for sorbet.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-07-30 16:43:10 +00:00
BrewTestBot
14553e367f
brew vendor-gems: commit updates.
2024-07-30 16:42:50 +00:00
dependabot[bot]
2876c6bce2
build(deps-dev): bump sorbet in /Library/Homebrew
...
Bumps [sorbet](https://github.com/sorbet/sorbet ) from 0.5.11495 to 0.5.11500.
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 09:41:28 -07:00
BrewTestBot
987481a0e4
brew vendor-gems: commit updates.
2024-07-30 16:40:43 +00:00
Mike McQuaid
72b45a0c3b
Merge pull request #17907 from Homebrew/dependabot/bundler/Library/Homebrew/spoom-1.4.2
2024-07-30 17:11:36 +01:00
dependabot[bot]
21b5931b99
build(deps-dev): bump racc from 1.8.0 to 1.8.1 in /Library/Homebrew
...
Bumps [racc](https://github.com/ruby/racc ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/ruby/racc/releases )
- [Changelog](https://github.com/ruby/racc/blob/master/ChangeLog )
- [Commits](https://github.com/ruby/racc/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: racc
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 15:56:12 +00:00
dependabot[bot]
4ca51e5625
build(deps-dev): bump spoom from 1.4.1 to 1.4.2 in /Library/Homebrew
...
Bumps [spoom](https://github.com/Shopify/spoom ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/Shopify/spoom/releases )
- [Commits](https://github.com/Shopify/spoom/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: spoom
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 15:54:55 +00:00
William Woodruff
6e9947d570
Merge pull request #17897 from Homebrew/ww/std-pip-args-allow-wheel
2024-07-30 11:49:17 -04:00
William Woodruff
575592d7f9
Update Library/Homebrew/language/python.rb
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-07-30 11:38:07 -04:00
William Woodruff
9804e58ceb
python: don't assume resources have URLs
...
Signed-off-by: William Woodruff <william@yossarian.net>
2024-07-30 09:51:33 -04:00
William Woodruff
c6ba4844b3
specialize wheel resource handling
...
Signed-off-by: William Woodruff <william@yossarian.net>
2024-07-30 08:38:58 -04:00