Mike McQuaid
b5e4665fa1
versions: tweak extract wording.
2018-08-27 08:39:29 +01:00
Caleb Xu
6f1ffbb660
extract: update docs
...
Preliminary blurb in documentation about using brew extract to obtain deprecated/deleted/particular versions of formulae.
2018-08-26 16:43:01 -04:00
Gautham Goli
3705956f53
Merge pull request #4753 from GauthamGoli/autocorrect-count
...
audit: Show RuboCop offense correction status and count in output
2018-08-26 23:55:17 +05:30
Gautham Goli
b82dbdcfa8
audit: Show RuboCop offense correction status in output when --fix
is passed
2018-08-26 19:33:19 +05:30
Mike McQuaid
9bc17c8a82
Merge pull request #4563 from alebcay/extract
...
Add new extract dev command to retrieve old versions of formulae
2018-08-26 12:59:50 +01:00
Caleb Xu
b1120dd404
extract: check if DependencyCollector::Compat is defined before monkey-patch
2018-08-26 02:22:09 -04:00
Caleb Xu
ad0f9d603f
extract: localize DependencyCollector monkey-patches too
2018-08-25 19:52:22 -04:00
Caleb Xu
bd352bcf35
extract: use localized monkey-patching
...
Instead of just blanketing over with monkey-patches like before,
set up monkey-patches as needed, and make sure to clean up after
we're done.
2018-08-25 14:52:30 -04:00
Caleb Xu
a8563afc9e
extract: add progress message when searching Git history
...
For the impatient ones out there.
2018-08-25 13:40:57 -04:00
Caleb Xu
ff2ce2f093
extract: better success message
...
Fixes the empty rev string when copying file from HEAD; explicitly
set rev to HEAD in that case.
2018-08-25 13:35:08 -04:00
Caleb Xu
d4a2006f04
extract: add missing monkey-patch
2018-08-25 13:33:25 -04:00
Caleb Xu
be0cd21d0f
extract: explicitly load cli_parser
2018-08-25 10:58:13 -04:00
Caleb Xu
0e080eba97
extract: simplify integration tests
2018-08-25 10:51:31 -04:00
Caleb Xu
1e4cd780c3
extract: fix style
2018-08-25 10:49:06 -04:00
Caleb Xu
9ab3ff4a41
extract: add spec/integration test
2018-08-24 11:42:11 -04:00
Caleb Xu
a232e3a791
extract: fix corner case
...
If the formula to be retrieved was just version-bumped in the most
recent commit (HEAD), we would've ended up grabbing the second-most
recent version.
Instead, if the file already exists in tree at the current commit,
just construct the formula from that to get the version (for naming
purposes) and copy the file outright to its new location.
2018-08-24 11:38:14 -04:00
Mike McQuaid
cc63c12247
Merge pull request #4570 from maxim-belkin/fix-linux-make-shim
...
Fix for Linux make shim
2018-08-24 14:24:32 +01:00
Mike McQuaid
9a84dbae71
shims/linux/make: match Linuxbrew shim.
2018-08-24 08:57:57 +01:00
Maxim Belkin
ae32922d0f
swap which and command -v
2018-08-23 20:48:12 +00:00
William Woodruff
6f7c9ae4f3
Merge pull request #4748 from woodruffw/export-homebrew-git
...
brew.sh: Export HOMEBREW_GIT
2018-08-23 14:37:21 -04:00
William Woodruff
d30557ace6
brew.sh: Export HOMEBREW_GIT
...
Should have been exported like HOMEBREW_CURL.
2018-08-23 11:50:42 -04:00
Mike McQuaid
35eb03de9f
Merge pull request #4742 from commitay/remove-undefined-bottle
...
audit: remove "`bottle` is not defined"
2018-08-23 16:36:05 +01:00
Shaun Jackman
ef149f2e2c
Merge pull request #4743 from maxim-belkin/mac-libs
...
formula_cellar_checks: .dylib and .framework are macOS-specific
2018-08-23 08:31:38 -07:00
Mike McQuaid
ea68ab4e25
Merge pull request #4747 from MikeMcQuaid/brew-bundle-docs-man
...
manpage: update from latest homebrew-bundle docs.
2018-08-23 16:11:56 +01:00
Mike McQuaid
0ac4220ca3
manpage: update from latest homebrew-bundle docs.
2018-08-23 15:36:01 +01:00
Maxim Belkin
4f166ce021
formula_cellar_checks: .dylib and .framework are macOS-specific
2018-08-22 21:25:00 -05:00
commitay
e0c3ea7474
audit: remove "bottle
is not defined"
2018-08-23 11:06:35 +10:00
Mike McQuaid
1c7c876f3f
Merge pull request #4736 from scpeters/bottle_json_local_filename
...
dev-cmd/bottle: save local_filename to json
2018-08-22 10:38:24 +01:00
Steven Peters
26e1d17b4d
dev-cmd/bottle: save local_filename to json
2018-08-22 01:30:18 -07:00
Caleb Xu
bc551d5ed1
extract: regenerate docs and manpages
2018-08-21 10:17:23 -04:00
Caleb Xu
0552dcff62
extract: accept tap as a non-flagged argument
2018-08-21 10:17:23 -04:00
Caleb Xu
6018968f91
Further collapse monkeypatches
2018-08-21 10:17:23 -04:00
Caleb Xu
875885dda6
Add a starter file for spec
2018-08-21 10:17:23 -04:00
Caleb Xu
713aedb6ed
Fix code review requests
2018-08-21 10:17:23 -04:00
Caleb Xu
260867627b
Switch back to monkey-patching
...
Also gsub! some particular formula contents to work around older
formulae ("brewkit" isn't around anymore, and url is expected to
be a method, not an instance variable).
2018-08-21 10:17:23 -04:00
Caleb Xu
95abdf9662
Use refinements instead of general monkey-patching
2018-08-21 10:17:23 -04:00
Caleb Xu
ff8b5f8c5a
extract: rework to search through old/deleted formulae
...
- Removed use of FormulaVersions - it's generally too brittle for our uses. We
now interface directly with the Git repo via utils/git and monkeypatch the
formula loading process where needed.
- Really old formulae (that specify fields as instance vars instead of methods)
still need more work to be supported; they don't work here quite yet.
- Properly handles deleted/removed formulae from Homebrew/homebrew-core.
Additional work is still needed to search through Homebrew/legacy-homebrew if
this functionality is desired.
2018-08-21 10:17:23 -04:00
Caleb Xu
8d8d235019
Bring up manpages and docs to match new changes
2018-08-21 10:17:23 -04:00
Caleb Xu
1003aa72c9
Additional fixups for extract command
...
- Rework command line options
- Make specifying a version optional
- Remove stdout option and require a tap to be specified
- Do not allow user to extract into homebrew/core
- Rework new class name generation to use existing Formulary tools
2018-08-21 10:17:23 -04:00
Caleb Xu
bd2ac70c0f
Fix style issues in extract command
2018-08-21 10:17:23 -04:00
Caleb Xu
1dff2f141c
Add manpages/docs for extract command
2018-08-21 10:17:23 -04:00
Caleb Xu
055460884b
Fix up extract command
...
- Move from cmd to dev-cmd
- Add --stdout flag
- Add sanity checks for args/flags
- Minor rewording on error messages
2018-08-21 10:17:23 -04:00
Caleb Xu
2952a9bf74
Add new extract command to retrieve old versions of formulae
2018-08-21 10:17:23 -04:00
Markus Reiter
713532e763
Merge pull request #4735 from reitermarkus/fix-tar-lz
...
`.tar.lz` ≠ `.tar.lzma`
2018-08-21 16:12:14 +02:00
Markus Reiter
3e79e1b89e
.tar.lz
≠ .tar.lzma
2018-08-21 15:46:24 +02:00
Markus Reiter
664bd9ac0f
Merge pull request #4728 from reitermarkus/languages
...
Ignore unparsable system languages.
2018-08-21 10:58:22 +02:00
Markus Reiter
b119591c69
Merge pull request #4731 from reitermarkus/use-cp
...
Use `cp` instead of `FileUtils.copy_entry`.
1.7.2
2018-08-20 23:56:37 +02:00
Markus Reiter
556e76b037
Use cp
instead of FileUtils.copy_entry
.
2018-08-20 19:06:55 +02:00
Markus Reiter
48dcf19169
Ignore unparsable system languages.
2018-08-19 22:10:20 +02:00
Mike McQuaid
c9aa25e6d2
Merge pull request #4722 from kabel/remove-chdir-twice
...
Remove the chdir call that was already moved to the ancestor
2018-08-19 16:21:20 +01:00