10755 Commits

Author SHA1 Message Date
Mike McQuaid
42e9782dd6 update-report: cleanup git harder in migration.
Before stashing also try to cancel any current merge, rebase and
reset. This will prevent any data loss but also make the stash more
likely to succeed.
2016-09-18 20:25:18 +01:00
Mike McQuaid
027d8923f2 Merge pull request #1018 from MikeMcQuaid/update-migration-create-cellar
update-report: also create Cellar on migration.
2016-09-18 20:18:53 +01:00
Mike McQuaid
132ed2bcd5 Merge pull request #1016 from MikeMcQuaid/migrate-handle-more-symlink-fails
update-report: handle directory not existing.
2016-09-18 20:18:42 +01:00
Mike McQuaid
ef4159f188 Merge pull request #1017 from MikeMcQuaid/test-bot-uninstall
test-bot: uninstall all formula on cleanup.
2016-09-18 20:17:35 +01:00
Mike McQuaid
b383d95352 os/mac: mark Mavericks as outdated. 2016-09-18 19:59:08 +01:00
Alyssa Ross
49bfb3fb4a Make Formula#installed_alias_target_changed? clearer 2016-09-18 19:58:12 +01:00
Mike McQuaid
8bae49941c outdated: prefer .join over *. 2016-09-18 19:58:12 +01:00
Alyssa Ross
7b85934f50 Update formula tests for #outdated_kegs 2016-09-18 19:58:12 +01:00
Alyssa Ross
d3788c58ef brew outdated: use full name in verbose 2016-09-18 19:58:12 +01:00
Alyssa Ross
c874b4e4c2 install: don't install alias if already installed 2016-09-18 19:58:11 +01:00
Alyssa Ross
2a683f2569 upgrade, outdated: follow alias changes 2016-09-18 19:58:09 +01:00
Mike McQuaid
3f9cce0a03 Use new "macOS" naming where appropriate.
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Alyssa Ross
3d559fa796 Add Formula#installed_alias_path 2016-09-18 19:45:52 +01:00
Mike McQuaid
fc04d8f4f6 update-report: also create Cellar on migration.
Just on the off chance it doesn't exist (i.e. no-one has installed
anything yet or you're a `test-bot` that's run `git clean -xdf`
recently)
2016-09-18 19:32:29 +01:00
Mike McQuaid
3551977fb3 test-bot: uninstall all formula on cleanup.
Need to do this manually now that we can't rely on `git clean -xdf` to
do it for us.
2016-09-18 19:30:00 +01:00
Mike McQuaid
ee0fb3e999 update-report: handle directory not existing.
This shouldn't be possible to occur after #1013 but it makes sense to
add it anyway.
2016-09-18 16:55:59 +01:00
Mike McQuaid
997ccb044d Relocate HOMEBREW_REPOSITORY when necessary.
Now that the default from the installer, our CI and soon all users
is `/usr/local/Homebrew` it's a lot easier to check if there's
references to it (as we cannot look for `/usr/local` as it's a too
commonly hardcoded path).
2016-09-18 16:31:58 +01:00
Mike McQuaid
f4a8d28819 Merge pull request #1013 from MikeMcQuaid/migrate-create-top-level-after
update-report: create top-level directories later.
2016-09-18 16:10:31 +01:00
Mike McQuaid
89ebffadec update-report: create top-level directories later.
Otherwise if they are created and empty they may be removed again
before we try to create the `/usr/local/bin/brew` symlink.
2016-09-18 16:06:49 +01:00
Mike McQuaid
72d0154454 update-report: migrate everyone to new repository.
Also migrate people without `HOMEBREW_DEVELOPER` set to the new
location.
2016-09-18 15:44:06 +01:00
Mike McQuaid
e20467971e Merge pull request #963 from MikeMcQuaid/migrate-repository
update-report: migrate /usr/local repository.
2016-09-18 15:41:04 +01:00
Mike McQuaid
ad466452de Merge pull request #1007 from MikeMcQuaid/update-remote-ref
update.sh: turn origin/branch into a variable.
2016-09-18 15:32:44 +01:00
Bob W. Hogg
467b5765cf os: update Linux troubleshooting url
The existing one has two issues:
* It doesn't reflect Linuxbrew's move to a separate GitHub org
* It redirects to the legacy-linuxbrew (pre-core/brew split) wiki
2016-09-18 10:28:23 -04:00
Mike McQuaid
0a09ae30f8 update-report: migrate /usr/local repository.
Migrate a HOMEBREW_REPOSITORY and HOMEBREW_PREFIX of `/usr/local` so
that the HOMEBREW_REPOSITORY is now in `/usr/local/Homebrew`. This gives
us more flexibility on changing the repository layout in future and
avoids putting junk in `/usr/local` when not necessary (e.g. our
`README.md`).
2016-09-18 13:49:02 +01:00
Mike McQuaid
d70841db2b update.sh: turn origin/branch into a variable.
Rather than repeating origin multiple times.
2016-09-18 13:45:32 +01:00
Mike McQuaid
59b7f16bfd Merge pull request #989 from MikeMcQuaid/rubocop-final
Rubocop: apply auto-corrections and don't use hash-rockets
2016-09-18 13:28:15 +01:00
ilovezfs
56541001a4 Merge pull request #1003 from zmwangx/utils-pathname-to-string
utils: convert formula name from pathname to string
2016-09-17 23:08:49 -07:00
Zhiming Wang
79261148e6 Merge pull request #982 from zmwangx/dumb-term-in-test
formula: set TERM to dumb during test
2016-09-18 00:06:18 -04:00
Zhiming Wang
58b17a0cfc
utils: convert formula name from pathname to string
`name` is passed as argument to Formulary.factory which could later be
downcased at formulary.rb:349, but Pathname doesn't have a downcase
method. Converting `name` to String as it should be fixes the problem.

Fixes #1000.
2016-09-17 23:55:28 -04:00
Mike McQuaid
c419f928ba Merge pull request #980 from JCount/how-to-open-PR--update
How-To-PR: both stable & devel in simple commit message
2016-09-17 20:45:39 +01:00
Mike McQuaid
295e937f27 utils: create missing kegs directories if needed. 2016-09-17 19:23:42 +01:00
Mike McQuaid
eb23a39701 utils: remove bad symlink if it already exists. 2016-09-17 19:02:36 +01:00
Mike McQuaid
5b8329b1c1 Merge pull request #992 from MikeMcQuaid/migrate-legacy-symlinks-harder
Improve legacy symlink migration.
2016-09-17 18:58:00 +01:00
Mike McQuaid
241d7b991b Improve legacy symlink migration.
Read the old symlinks and migrate them across rather than assuming a
unlink/link will work fine (as users have conflicts.)
2016-09-17 18:50:25 +01:00
Mike McQuaid
1bdbb0f462 Improve rescue nesting. 2016-09-17 17:01:04 +01:00
ilovezfs
390bcf413b no_weak_imports: always check for support
ENV.no_weak_imports should be a no-op when Xcode doesn't support the
feature to avoid breaking builds with <= Xcode 7.
2016-09-17 08:29:47 -07:00
Mike McQuaid
69e4ad9809 Add Rubocop TODO list. 2016-09-17 16:14:14 +01:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Mike McQuaid
6693915399 rubocop --auto-correct all remaining files.
But remove some manual `.freeze`s on constants that shouldn't be
constants.
2016-09-17 16:14:13 +01:00
Mike McQuaid
299dffd903 Merge pull request #988 from MikeMcQuaid/move-linkedkegs-migration
Move LinkedKegs migration.
2016-09-17 15:09:47 +01:00
Mike McQuaid
8f1ae3b28b Move LinkedKegs migration.
Move the `LinkedKegs` migration into `utils.rb` so it can also be called
from `brew.rb` on startup.
2016-09-17 15:00:46 +01:00
Mike McQuaid
224794c761 Merge pull request #984 from MikeMcQuaid/support-sierra
os/mac: officially support Sierra.
2016-09-17 14:09:18 +01:00
Mike McQuaid
e3fe2704eb Merge pull request #983 from MikeMcQuaid/update-force-linkedkegs-migration
Always run LinkedKegs migration (if needed).
2016-09-17 13:29:23 +01:00
Mike McQuaid
789cfb0961 Merge pull request #986 from MikeMcQuaid/test-bot-sierra-coverage
test-bot: generate coverage reports on Sierra.
2016-09-17 13:28:04 +01:00
Mike McQuaid
8aa18510c4 Always run LinkedKegs migration (if needed).
Ensure that `brew update` always runs the LinkedKegs migration if needed
as it may not have been run by `brew update` if it was using `--preinstall` or
a `git pull` etc.

Also, if the old paths still exist: just use them instead.

Finally, always try to unlink/unpin before link/pin.

Fixes https://github.com/Homebrew/homebrew-core/issues/4918.
2016-09-17 13:25:32 +01:00
Mike McQuaid
43d8b969db os/mac: officially support Sierra.
We have a GM, a bunch of bottles and CI setup.
2016-09-17 12:59:32 +01:00
Mike McQuaid
b1903c1a4a test-bot: generate coverage reports on Sierra.
We may have two Sierra nodes available which could speed up this
relatively slow operation.
2016-09-17 12:55:46 +01:00
Mike McQuaid
10f2bc2dea Merge pull request #973 from MikeMcQuaid/move-repo-links
Move LinkedKegs/PinnedKegs/Locks from Library.
2016-09-17 10:15:13 +01:00
Mike McQuaid
297eeac0d3 Merge pull request #978 from MikeMcQuaid/codecov-no-comments
.codecov.yml: disable GitHub comments.
2016-09-17 10:15:08 +01:00
Zhiming Wang
f8d7745547
formula: set TERM to dumb during test
Software that tries to print different things (e.g. ANSI color) based on
different termcaps often relies on the TERM environment variable, and
could fail without it. This results in confusing test issues where
certain tests can be successfully run by users testing locally with TERM
set, but choke up on our CI.

Always setting TERM to dumb leads to better consistency between local
tests and CI tests, and saves much probing in certain cases.
2016-09-17 03:01:47 -04:00