Commit Graph
13437 Commits
Author SHA1 Message Date
Mike McQuaid 36dadbee47 caveats: remove python caveats.
These instructions are currently incorrect and need to be ported to
`python` 3.x and `python@2` formulae. Until then it's better to not have
them than have them be incorrect.

Closes #3890.
2018-03-08 08:34:20 +00:00
Mike McQuaidandGitHub 53a71a79b3 Merge pull request #3875 from MikeMcQuaid/test-deps
Allow :test dependencies.
2018-03-08 08:19:15 +00:00
ilovezfs f87a589129 keg: don't delete main opt links of other formulae.
If an old alias, according to the tab, of a formula being upgraded (e.g.
python) has the same name as the main opt link of some other formula
(e.g. python@2), don't remove the main opt link of that other formula.

Specifically,

  brew install python@2
  brew upgrade python

should not accidentally delete /usr/local/opt/python@2 even though
python@2 used to be an alias of python.
2018-03-07 22:35:23 -08:00
Mike McQuaidandGitHub eee6e98d90 Merge pull request #3840 from aw1621107/prefer-xcode-libcxx
Add macOS libs ahead of brewed llvm libs in lib search path
2018-03-07 16:03:26 +00:00
Mike McQuaidandGitHub 740e89d2f3 super: tweak LLVM refactoring. 2018-03-07 15:00:08 +00:00
Vítor GalvãoandGitHub 6c203f9372 Merge pull request #3865 from commitay/systemcommand
Fix SystemCommand escaping
2018-03-06 09:34:56 +00:00
Mike McQuaidandGitHub 7cb6ebf3fb super: refactor LLVM path addition. 2018-03-06 08:44:47 +00:00
Mike McQuaidandGitHub 067b9c9e88 Merge pull request #3833 from GauthamGoli/depends_on_order_master
rubocop: Add cop to check `depends_on` order and tests
2018-03-06 08:35:10 +00:00
Mike McQuaidandGitHub ba4ac75543 Merge pull request #3836 from alyssais/info_sort
info: sort HEAD keys by install date
2018-03-06 08:35:00 +00:00
Mike McQuaidandGitHub dedda60bdd Merge pull request #3879 from sjackman/unzip_dep_if_needed
unzip_dep_if_needed: Needs unzip not zip [Linux] (#632)
2018-03-06 08:34:48 +00:00
Nikoli DrydenandGitHub 11817fe1f7 Generalize the regex determining the Xcode version.
The current regex only matches a single digit for each component of the version (e.g. 9.2). This modifies it to match multiple digits in each component, so that e.g. 10.42 will be matched.
2018-03-05 19:44:11 -06:00
Shaun Jackman 5500c3b25e unzip_dep_if_needed: Needs unzip not zip [Linux] (#632) 2018-03-05 11:51:08 -08:00
Shaun Jackman 4af8950f8b check_undeclared_deps: Fix for taps
undeclared_deps reported all dependencies in taps as undeclared.
2018-03-05 09:51:27 -08:00
Mike McQuaid fea9bc1e42 Allow :test dependencies.
These specify that they are needed by the test block. This can be
combined with `:build` to ensure that this formula isn't uninstalled
by `brew test-bot` when running `test do` blocks on our CI.
2018-03-05 10:36:39 +00:00
Mike McQuaidandGitHub 3184d087b9 Merge pull request #3867 from MikeMcQuaid/migrator-messaging-tweaks
migrator: tweak more messaging.
2018-03-05 10:26:37 +00:00
Mike McQuaid 1a51d7fb44 migrator: tweak more messaging.
- Make it clearer what the migrator is doing and why
- Recommend an unconditional brew upgrade
2018-03-05 10:14:39 +00:00
Teddy Wing ee004cb9c7 cmd/upgrade: Change build.build_bottle? to build.bottle?
I received the following error when attempting to use the `upgrade`
command on a tap:

    $ brew tap teddywing/passextract https://github.com/teddywing/Passextract.git
    $ brew upgrade --verbose teddywing/passextract/passextract
    Updating Homebrew...

    ==> Upgrading 1 outdated package, with result:
    teddywing/passextract/passextract 0.4.0
    Error: Calling build.build_bottle? is disabled!
    Use build.bottle? instead.
    /usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:121:in `upgrade_formula'
    Or, even better, submit a PR to fix it!

Change the method call to use the (presumably) newer version.
2018-03-04 12:38:33 +01:00
Mike McQuaidandGitHub bc3389bdae Merge pull request #3863 from MikeMcQuaid/python3-changes
Adjust docs and more internal code for Python 3.
2018-03-03 18:17:04 +00:00
Mike McQuaid 83fae62b4f Gemfile.lock: update testing gems. 2018-03-03 10:22:37 +00:00
Mike McQuaidandGitHub 8d6aa70f9c Merge pull request #3861 from scpeters/patch-3
language/python: version 3.6 in site_packages
2018-03-03 09:43:41 +00:00
Mike McQuaid 70253f0009 Adjust docs and more internal code for Python 3.
Now we have `python` for Python 3 and `python@2` for Python 2 some more
adjustments need to be made.
2018-03-03 09:42:25 +00:00
ilovezfsandGitHub 08f7e8c588 Merge pull request #3864 from MikeMcQuaid/migrator-upgrade
migrator: recommend upgrade.
2018-03-02 21:18:22 -08:00
commitay 2404279d63 Fix SystemCommand escaping 2018-03-03 14:45:12 +10:00
Mike McQuaid 2f776ed523 migrator: recommend brew upgrade.
You’re in a weird middle state if you run `brew update` but haven’t
upgraded a migrated formula.
2018-03-02 21:23:07 +00:00
ilovezfsandGitHub 0ebb5b2857 Merge pull request #3862 from MikeMcQuaid/migrator-overwrite
migrator: overwrite by default.
2018-03-02 09:53:02 -08:00
Mike McQuaid b4c268e3c5 migrator: overwrite by default.
This avoids getting into an invalid state which will and does break
for users.
2018-03-02 17:21:17 +00:00
Steven PetersandGitHub 0d5ae6cf0b language/python: version 3.6 in site_packages 2018-03-02 09:05:41 -08:00
Alyssa Ross 84dda31e82 Add tests for ENV#clear_sensitive_environment! 2018-03-01 17:48:08 +00:00
Alyssa RossandGitHub 43c658a8fa Merge pull request #3852 from sjackman/linkage_checker
Move linkage_checker from os/mac to generic
2018-03-01 17:24:34 +00:00
Gautham Goli 09f343d496 rubocop: Add cop to check depends_on order and tests 2018-03-01 12:32:25 +05:30
Shaun Jackman 97932c1abf Move linkage_checker from os/mac to generic 2018-02-28 11:18:27 -08:00
Steven Peters db615a419a dev-cmd/ruby: fix path to dev-cmd/irb and add test 2018-02-28 09:31:29 -08:00
Alex Wang 7b94842610 Split ternary for PATH building into if/else cases 2018-02-28 09:26:15 -05:00
Mike McQuaidandGitHub 4176399537 Merge pull request #3851 from MikeMcQuaid/pry
irb: add pry support.
2018-02-28 14:25:16 +00:00
Mike McQuaid 2205f62ec6 irb: add pry support.
Make `brew irb` optionally support `pry`. While doing so, also make it a `dev-cmd`.
2018-02-28 11:36:23 +00:00
ilovezfs 04cec369c7 language/python: handle python@* in each_python 2018-02-28 03:20:14 -08:00
Mike McQuaidandGitHub e3be551244 Merge pull request #3847 from MikeMcQuaid/travis-caching
travis.yml: fix bundler caching.
2018-02-27 15:36:34 +00:00
Mike McQuaid d4a3fc088f travis.yml: fix bundler caching. 2018-02-27 14:30:30 +00:00
Mike McQuaidandGitHub 1d656c805c Merge pull request #3844 from MikeMcQuaid/warnings
brew.sh: HOMEBREW_DEVELOPERs can enable Ruby warnings.
2018-02-27 13:06:09 +00:00
Mike McQuaid 6302da37f6 Add prof and ruby commands.
These are imported from Homebrew/homebrew-dev-tools and are both used by
maintainers so may be useful for contributors too.
2018-02-27 12:07:30 +00:00
Mike McQuaid 9446eb661d brew.sh: HOMEBREW_DEVELOPERs can enable Ruby warnings.
It provides some useful helpers for when we're doing stupid things but
it's not something we want around by default.
2018-02-27 11:53:31 +00:00
Mike McQuaid 430bb7c3a0 update: tweak git too old check.
Avoid trying to install and warning if system Git is too old but Git
is already installed.
2018-02-27 10:41:16 +00:00
Alex Wang bfa474857a Add macOS libs ahead of brewed llvm libs in lib search path
This ensures that libraries that are built with brewed LLVM but not
included in the Command Line Tools/Xcode (e.g. libomp) can be found
during a build, while still using system libraries for the essential
stuff (e.g. libc++)
2018-02-26 18:35:34 -05:00
Mike McQuaid 72f4d05418 Handle a too old system Git on OS X 10.8 and below
Needed for GitHub since:
https://github.com/blog/2507-weak-cryptographic-standards-removed
2018-02-26 16:08:10 +00:00
Alyssa Ross adb8c252b0 info: sort HEAD keys by install date
This makes a lot more sense than sorting alphabetically by commit hash,
the previous behaviour.
2018-02-26 09:21:38 +00:00
Mike McQuaidandGitHub 16df750837 Merge pull request #3827 from maxim-belkin/brew-unix-3
Cross-platform java detection
2018-02-23 08:48:12 +00:00
Mike McQuaid f2ce6489b2 Use more docs.brew.sh short links
These are nicer on the eyes.
2018-02-22 19:46:58 +00:00
Maxim Belkin a1bf2c072c Use \d instead of 0-9 in regex 2018-02-22 19:25:56 +00:00
Maxim Belkin 5536f49305 Cross-platform java detection 2018-02-22 18:32:21 +00:00
Mike McQuaidandGitHub 1811c77ec6 Merge pull request #3813 from maxim-belkin/brew-unix-2
bzip2 and zip dependencies_if_needed
2018-02-21 14:31:24 +00:00