Issy Long
e1383c2898
utils/git_spec: Make example files easier to reason about
...
- Give the files real names, like `README.md`, rather than having to
parse the difference between "bleh" and "blah" when reading the tests.
2020-07-14 00:18:45 +01:00
Issy Long
981726c088
utils/git_spec: Add a test for last_revision_commit_of_files
...
- This method, called from `brew extract` in the case of extraction from
third-party taps, was untested. This led to it breaking when we refactored
some of it to appease Sorbet (see PR 7933). If I make the same
(flawed) change here and run these tests, they fail.
- There's a fair bit going on here, but most of it is setup for
committing changes to more files, as we're testing operations on
multiple files in a Homebrew repo.
- I originally tried to write tests for `brew extract`, but that
required _a lot_ of refactoring because those tests (and their helper
methods) aren't designed for third-party taps - they rely on
`CoreTap`. So testing the underlying method is a better solution.
2020-07-14 00:18:44 +01:00
Rylan Polster
e9932a601f
Merge pull request #7909 from Rylan12/audit-rubocop-migration
...
Audit to RuboCop migration
2020-07-10 15:37:44 -04:00
Rylan Polster
69e89d7a01
add TODOs for future refactoring
2020-07-10 15:08:20 -04:00
Mike McQuaid
82e23c3e52
Merge pull request #7977 from Homebrew/dependabot/bundler/Library/Homebrew/codecov-0.2.0
...
build(deps): bump codecov from 0.1.20 to 0.2.0 in /Library/Homebrew
2020-07-10 19:59:16 +01:00
dependabot-preview[bot]
a737f934e8
build(deps): bump codecov from 0.1.20 to 0.2.0 in /Library/Homebrew
...
Bumps [codecov](https://github.com/codecov/codecov-ruby ) from 0.1.20 to 0.2.0.
- [Release notes](https://github.com/codecov/codecov-ruby/releases )
- [Changelog](https://github.com/codecov/codecov-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-ruby/compare/v0.1.20...v0.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-10 18:38:08 +00:00
Bo Anderson
28f4a700ac
Merge pull request #7975 from Homebrew/dependabot/bundler/Library/Homebrew/codecov-0.1.20
...
build(deps): bump codecov from 0.1.19 to 0.1.20 in /Library/Homebrew
2020-07-10 18:20:19 +01:00
Shaun Jackman
a2b47972a7
Merge pull request #7971 from sjackman/bottle-merge-cellar
...
bottle --merge: Fix bug with cellar :any
2020-07-10 10:14:59 -07:00
Bo Anderson
ead8768ee0
Merge pull request #7964 from SeekingMeaning/xcodebuild-hotfix
...
sandbox: use Dir.home instead of HOME
2020-07-10 17:47:43 +01:00
Shaun Jackman
e2db288340
bottle --merge: Fix bug with cellar :any
...
When merging cellar, :any ought to have higher priority than
:any_skip_relocation.
The variables first and second are strings, not tags.
2020-07-10 09:46:05 -07:00
dependabot-preview[bot]
47bf85de4b
build(deps): bump codecov from 0.1.19 to 0.1.20 in /Library/Homebrew
...
Bumps [codecov](https://github.com/codecov/codecov-ruby ) from 0.1.19 to 0.1.20.
- [Release notes](https://github.com/codecov/codecov-ruby/releases )
- [Changelog](https://github.com/codecov/codecov-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-ruby/compare/v0.1.19...v0.1.20 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-10 16:35:20 +00:00
Mike McQuaid
a1f4433d17
Merge pull request #7968 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rspec-1.42.0
...
build(deps): bump rubocop-rspec from 1.41.0 to 1.42.0 in /Library/Homebrew
2020-07-10 17:13:54 +01:00
Seeker
f03aeb41c7
sandbox: use Dir.home instead of HOME
2020-07-10 08:31:10 -07:00
Rylan Polster
a720d45bd0
cleanup audit file
2020-07-10 11:17:37 -04:00
Rylan Polster
9e52712b08
style: don't need require "formula"
2020-07-10 11:17:37 -04:00
Rylan Polster
1a703a1234
regex_match_group: handle non UTF-8 encoded strings
2020-07-10 11:17:37 -04:00
Rylan Polster
e0b5c2093a
style: refactor OptionDeclarations cop
2020-07-10 11:17:37 -04:00
Rylan Polster
1859162735
style: use pkgshare instead of share/foo
2020-07-10 11:17:37 -04:00
Rylan Polster
792533462a
style: don't use prefix + directory
2020-07-10 11:17:37 -04:00
Rylan Polster
b4a9565b8b
style: require java dependency for JAVA_HOME
2020-07-10 11:17:37 -04:00
Rylan Polster
9ad342eba0
style: don't concatenate in string interpolation
2020-07-10 11:17:37 -04:00
Rylan Polster
63b81d847a
style: env :userpaths is deprecated
2020-07-10 11:17:37 -04:00
Rylan Polster
1e943d7b6f
style: env :std deprecated in homebrew-core
2020-07-10 11:17:37 -04:00
Rylan Polster
bd8805b14f
style: separate make commands
2020-07-10 11:17:37 -04:00
Mike McQuaid
4d302199a3
brew vendor-gems: commit updates.
2020-07-10 15:57:31 +01:00
dependabot-preview[bot]
6f4101cbb4
build(deps): bump rubocop-rspec in /Library/Homebrew
...
Bumps [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec ) from 1.41.0 to 1.42.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-rspec/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop-rspec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-rspec/compare/v1.41.0...v1.42.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-10 14:51:33 +00:00
Mike McQuaid
abbe2800b4
Merge pull request #7963 from Homebrew/python3.8-docs
...
docs: update docs to reflect new Python procedures
2020-07-10 15:44:16 +01:00
Mike McQuaid
da1efc46f5
Merge pull request #7949 from MLH-Fellowship/integrate-list
...
Allow listing casks when using brew list
2020-07-10 15:40:22 +01:00
Mike McQuaid
a2ae8741a9
Merge pull request #7871 from MLH-Fellowship/license-forbidden
...
License forbidden
2020-07-10 15:38:51 +01:00
Mike McQuaid
cae099bb2c
Merge pull request #7957 from MikeMcQuaid/keg-refactoring
...
keg: general cleanup.
2020-07-10 12:57:35 +01:00
Mike McQuaid
bab7c7e190
Merge pull request #7961 from MikeMcQuaid/cleanup-exist
...
cleanup: check path exists before cleanup.
2020-07-10 10:16:23 +01:00
Mike McQuaid
4816e8320d
cleanup: check path exists before cleanup.
...
It may have been already cleaned up by an earlier step.
2020-07-10 09:32:27 +01:00
Mike McQuaid
b8018b49da
Merge pull request #7967 from Bo98/opt_or_installed_prefix_keg
...
formula: use installed_prefixes in opt_or_installed_prefix_keg
2020-07-10 08:38:34 +01:00
Bo Anderson
d5d3fc0f4b
formula: use installed_prefixes in opt_or_installed_prefix_keg
2020-07-09 23:04:15 +01:00
Rylan Polster
111f9e5ca3
docs: update docs to reflect new Python procedures
2020-07-09 14:36:22 -04:00
Mike McQuaid
6d2c39579e
Merge pull request #7960 from MikeMcQuaid/delete-more-linkedkegs-symlinks
...
keg: delete more alias LinkedKegs symlinks.
2.4.5
2020-07-09 17:07:16 +01:00
Bo Anderson
04370d4663
Merge pull request #7959 from Bo98/python3.7
...
language/python: allow python@3.7 to be used for virtualenvs
2020-07-09 16:44:54 +01:00
Mike McQuaid
66230fa842
keg: delete more alias LinkedKegs symlinks.
...
We don't actually care what it points to because we shouldn't have
LinkedKegs around for aliases at all (unlike `opt` links).
2020-07-09 16:37:23 +01:00
William Ma
62a5614850
list: Update documentation
2020-07-09 11:21:22 -04:00
Bo Anderson
1c73393b47
language/python: raise if we can't detect the Python to use for venv
2020-07-09 15:43:36 +01:00
Mike McQuaid
a3c89ff93b
Merge pull request #7955 from MikeMcQuaid/formula-linked-keg
...
formula: look harder for a linked keg.
2020-07-09 15:36:37 +01:00
Bo Anderson
17ddfe102b
Merge pull request #7958 from Bo98/mv
...
formula_installer: mv rather than rename on link_overwrite
2020-07-09 15:34:36 +01:00
Bo Anderson
f01d264c3c
language/python: allow python@3.7 to be used for virtualenvs
2020-07-09 15:31:53 +01:00
Bo Anderson
16049840dc
formula_installer: mv rather than rename on link_overwrite
...
Fixes a cross-device link error if the two locations are on separate partitions.
2020-07-09 15:06:44 +01:00
Mike McQuaid
82e249b92f
formula: look harder for a linked keg.
...
Add and use a `possible_names` method to find a linked keg based on
an old name or alias.
Use this both for `link_overwrite` and for `linked_keg` (which is what
`brew upgrade` uses to find outdated kegs).
2020-07-09 15:03:49 +01:00
Mike McQuaid
50d12ce900
Merge pull request #7956 from MikeMcQuaid/keg-unlink-more-aliases
...
keg: unlink alias linkedkegs.
2020-07-09 14:54:09 +01:00
Mike McQuaid
91b0bd3798
Merge pull request #7952 from Bo98/alias_prefixes
...
formula: consider aliases in installed_prefixes
2020-07-09 14:53:46 +01:00
Mike McQuaid
dfbc09c12f
keg: general cleanup.
...
Some refactoring while doing #7956 .
2020-07-09 14:21:14 +01:00
Mike McQuaid
386747c733
keg: unlink alias linkedkegs.
...
We did these for opt symlinks already but not linkedkegs.
2020-07-09 14:17:27 +01:00
Bo Anderson
2afa8497c0
formula: consider aliases in installed_prefixes
2020-07-09 14:08:58 +01:00