3122 Commits

Author SHA1 Message Date
Steven Peters
7ddd3977d8 cmd/deps.rb add --full-name option
Add --full-name option to brew deps command,
which displays the full name of dependencies.
2016-08-28 00:30:30 -07:00
Dominyk Tiller
ab203a749f
search: handle name@v.v formulae.
Before this change:
```
~> brew search openssl@1.1
openssl@1.1 ✔
==> Did you mean to perform a regular expression search?
==> Surround your query with /slashes/ to search by regex.
```
2016-08-28 03:08:21 +01:00
ilovezfs
9d77652549 audit: detect partial component order compliance
depends_on "foo"
conflicts_with "bar"
depends_on "baz"

should still detect that "bar" and "baz" are in the wrong order even
though "foo" and "bar" happen to be in the right order.
2016-08-25 07:01:46 -07:00
Mike McQuaid
46a3003a2f update.sh: reset pre-stash, die if stash fails.
A `git reset --hard` without stashing first risks nuking in-progress
work. A `git reset --mixed` should allow stashing to occur more often
on e.g. merge conflicts.

Fixes #766.
2016-08-25 11:45:59 +01:00
Mike McQuaid
ea069936bf Revert "update: make GIT_EXECUTABLE an absolute path."
This reverts commit b6afa228f4974f4af1e8938911e35150aa2991c8 from #778.
2016-08-25 11:12:22 +01:00
Mike McQuaid
ec75fbcb65 cmd/man: deprecate --link option. 2016-08-24 11:07:06 +01:00
Mike McQuaid
3df7daa5bf update-report: also link brew*.1 manpages.
Otherwise if your `HOMEBREW_PREFIX` and `HOMEBREW_REPOSITORY` are not
equal then your tap manpages will be linked but your `brew*` ones will
not.
2016-08-24 11:06:58 +01:00
Mike McQuaid
b6afa228f4 update: make GIT_EXECUTABLE an absolute path.
Otherwise it can end up as e.g. `bin/git` which then breaks when we
`cd` to another directory and try to run it.
2016-08-22 09:04:15 +01:00
Markus Reiter
a98015192b Move Cask man page to root. 2016-08-22 01:49:12 +02:00
Mike McQuaid
7c7e2d00af Merge pull request #768 from MikeMcQuaid/cask-man
Make "brew man" also generate Cask's manpage.
2016-08-20 16:57:03 +01:00
Mike McQuaid
665783cba4 Make "brew man" also generate Cask's manpage.
Also, check in this manpage, adjust the Rakefile and remove the old one.

Fixes #731.
2016-08-20 16:36:34 +01:00
Andrew Janke
5d603c3e8f separate build and test logs 2016-08-19 12:27:37 -04:00
Mike McQuaid
9967bc99f0 Merge pull request #731 from MikeMcQuaid/rename-bottle-revision
Rename bottle's revision to rebuild.
2016-08-19 12:15:00 +01:00
Andrew Janke
954445634c separate build and test logs 2016-08-19 01:04:32 -04:00
ilovezfs
a5dac52d10 audit: fix suggested GitHub pull request URLs
Closes #746.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-08-18 15:16:14 -07:00
Mike McQuaid
27ecf588c7 Rename bottle's revision to rebuild. 2016-08-18 17:32:35 +01:00
Mike McQuaid
e83da4c8e6 audit: tweak "remove revision" message clarity.
Reference the revision value so it's more obvious that this does not
refer to e.g. a SCM revision.
2016-08-18 15:04:51 +01:00
Mike McQuaid
8137b80a20 audit: audit version_scheme.
Reuse the existing `revision` method that was made more generic.
2016-08-18 15:04:51 +01:00
Mike McQuaid
41f6334b5b audit: make audit_revision more generic.
This will allow it to be used for checking other attributes too.
2016-08-18 15:04:51 +01:00
Mike McQuaid
eea0da362b audit: ensure correct version_scheme placement. 2016-08-18 15:04:51 +01:00
Mike McQuaid
55ba22e296 formula_versions: add version_attributes_map.
This allows querying multiple attributes in the same way as
`revision_map` did but without duplicating code or repeatedly traversing
history.
2016-08-18 15:04:51 +01:00
Mike McQuaid
cf71e30180 Merge pull request #724 from MikeMcQuaid/assume-ruby-two
Assume Ruby 2
2016-08-17 11:07:17 +01:00
Mike McQuaid
59b3c085ba cmd/audit: assume Ruby 2. 2016-08-17 09:19:56 +01:00
Mike McQuaid
135ecd1295 Prepare for Homebrew Cask to be imported.
- ignore Cask's files in `readall` (for now, there's an intentional
  syntax error that will need fixed)
- run Cask's tests if they exist
- don't check Cask's files in coverage reports (for now)
2016-08-17 09:11:11 +01:00
Mike McQuaid
2ab5c77d0c Merge pull request #713 from MikeMcQuaid/ship-sandbox
Enable sandbox by default for homebrew/core
2016-08-17 08:30:16 +01:00
Martin Afanasjew
823505a058 Fix minor issues in command help text formatting
- Inconsistent or unneeded indentation
- Missing or superfluous empty lines
- Missing or wrongly formatted arguments in command summary
- Missing punctuation
2016-08-17 01:25:51 +02:00
Mike McQuaid
984ed836bd doctor: print check on --debug. 2016-08-16 11:16:37 +01:00
Mike McQuaid
87173cb7cd Merge pull request #710 from MikeMcQuaid/list-manpage-tweaks
list: note that `ls` command is used.
2016-08-16 10:25:53 +01:00
Mike McQuaid
8a24d5f942 Merge pull request #513 from MikeMcQuaid/enable-vendor-ruby
Enable vendored Ruby 2.0.
2016-08-16 10:16:49 +01:00
Mike McQuaid
c6151951d6 cmd/postinstall: use Sandbox.formula? method. 2016-08-15 08:33:59 +01:00
Mike McQuaid
ca3e4fcc1d cmd/test: use Sandbox.test? 2016-08-15 08:33:58 +01:00
Mike McQuaid
28fe84e5db pull: loosen Jenkins Testing URL. 2016-08-14 12:06:37 +01:00
Mike McQuaid
0695edafa1 list: note that ls command is used.
And arguments can be passed through to it.

Tweak produced out of conversation in
https://github.com/Homebrew/brew-evolution/pull/8.
2016-08-14 10:38:34 +01:00
Mike McQuaid
dd94aca9eb Merge pull request #703 from MikeMcQuaid/search-remove-cache
search: remove thread-unsafe Hash cache.
2016-08-14 10:00:18 +01:00
Mike McQuaid
611ba62a24 Merge pull request #689 from MikeMcQuaid/update-force
update: add --force argument.
2016-08-14 10:00:06 +01:00
ilovezfs
7c807d347e pull: non-core tap support for Homebrew Testing jobs
`test-bot --ci-testing` supports a `--tap` option for non-core taps, so
`brew pull` should too when pulling Homebrew Testing jobs.
2016-08-13 02:28:33 -07:00
Mike McQuaid
b9efa6336e search: remove thread-unsafe Hash cache.
Doesn't appear to affect the speed of `brew search`.

Fixes #415.
2016-08-12 21:29:49 +01:00
Mike McQuaid
24fb0068e7 update: add --force argument.
Add a `brew update --force` to side-step all of the clever optimisations
we have to detect if an update is unnecessary. That means if those
optimisations go wrong in future we can tell people just to run this
single command.

This would have been a useful workaround for the issue fixed in 985c672.
2016-08-12 14:22:00 +01:00
Mike McQuaid
99837fae47 update.sh: prevent overwriting UPSTREAM_BRANCH.
UPSTREAM_BRANCH was being used both as a loop variable name and name
for the upstream branch for HOMEBREW_REPOSITORY. This meant that the
variable names were overwritten which prevented update.

Closes #693.
2016-08-11 17:22:27 +01:00
Mike McQuaid
24b5db5367 update.sh: further tweak update fix. 2016-08-11 13:47:13 +01:00
Mike McQuaid
985c672bac update.sh: check upstream SHA prefetch not local.
Otherwise this can prevent taps from being updated as expected.
2016-08-11 10:59:35 +01:00
Vlad Shablinsky
7fa9c0e977 Update --fetch-HEAD documentation 2016-08-11 09:30:59 +02:00
Greg Nisbet
bf63c08d50 tests for shell-specific diagnostic message 2016-08-10 23:21:30 -07:00
Greg Nisbet
9a29a306cf resolve conflict in diagnostic.rb 2016-08-10 23:19:09 -07:00
Mike McQuaid
4eaa40ae1f Enable vendored Ruby 2.0. 2016-08-10 20:06:14 +01:00
Mike McQuaid
0c6e307eef update.sh: all configurable HOMEBREW_AUTO_UPDATE_SECS. 2016-08-10 15:37:04 +01:00
Mike McQuaid
1a240cd52a Tweak HOMEBREW_NO_AUTO_UPDATE handling.
This can just live in `brew.sh` and then it doesn’t need repeated in
all the other places.
2016-08-10 15:37:04 +01:00
Mike McQuaid
11116c2467 update.sh: further speed up brew update.
Tweak the logic further to make the no-op case even faster.

Before:
```
brew update  1.10s user 1.05s system 92% cpu 2.325 total
brew update --preinstall  0.60s user 0.77s system 96% cpu 1.433 total
```

After:
```
brew update  0.60s user 0.34s system 83% cpu 1.132 total
brew update --preinstall  0.29s user 0.24s system 62% cpu 0.860 total
```

These times are now fast enough to avoid any further special-casing for
`--preinstall`, roll it out to users by default and not print a message
unless we've actually found some updates.
2016-08-10 15:37:04 +01:00
Misty De Meo
fdf55e77e1 Improve formula not found handling (#96) 2016-08-10 10:37:35 +01:00
Martin Afanasjew
159b0eea35 update: suppress warning about missing FETCH_HEAD
Fixes #671.
2016-08-09 21:19:30 +02:00