Markus Reiter
211e8538ec
Set initial_version
to nil
when git describe
fails.
2018-08-10 22:48:12 +02:00
Markus Reiter
03b93da296
Use option parser for brew cleanup
.
2018-08-08 13:11:16 +02:00
Markus Reiter
a2238f0eb3
Output message when migrating cache entries.
2018-08-08 07:34:24 +02:00
Markus Reiter
19ffbd5e68
Skip migration if HOMEBREW_DISABLE_LOAD_FORMULA
is set.
2018-08-07 16:07:12 +02:00
Markus Reiter
888a7073bc
Change migration to loop through formulae.
2018-08-06 17:25:29 +02:00
Markus Reiter
7449f9cd15
Fix update-report
migration.
2018-08-06 12:52:18 +02:00
Markus Reiter
dca5dc8176
Add warnings for permission exceptions.
2018-08-05 16:03:21 +02:00
Markus Reiter
8158f045c4
Only run migration when updating from older version.
2018-08-05 15:57:28 +02:00
Markus Reiter
4065c1742d
Add update migration for double dashes.
2018-08-05 15:57:28 +02:00
Markus Reiter
de246cc528
Update Homebrew-Cask references.
2018-05-25 18:20:02 +02:00
Markus Reiter
c4222141ac
Revert "Update Homebrew-Cask references."
...
This reverts commit 4475651b548afdcf15c4cf7a7cb57baca1885186.
2018-05-25 17:57:32 +02:00
Markus Reiter
4475651b54
Update Homebrew-Cask references.
2018-05-25 17:56:16 +02:00
Markus Reiter
54834ccbe3
Move repo_var
method to Tap
class.
2018-05-25 16:21:37 +02:00
Markus Reiter
b4de801a01
Support both Homebrew
and caskroom
for now.
2018-05-21 01:43:49 +02:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
83cca40fc9
RuboCop 0.53.0 manual fixes.
2018-03-08 14:10:02 +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
EricFromCanada
1d2b4ed321
docs: add more missing option descriptions
...
and improve wording or formatting where necessary.
2018-02-01 16:06:17 -05:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Dominyk Tiller
ca69d65456
update-report: pass explicit sort to handle APFS
2017-10-14 04:22:22 +01:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Alyssa Ross
b6d36003b3
Always output when tapping core
...
Hiding all output makes it look like Homebrew is hanging while the tap
operation (which can take a long time!) is running.
Closes #3053 .
2017-09-07 12:12:22 +01:00
Alyssa Ross
a6fa2f367b
Don't fail to migrate repo because of empty dir
...
I just ran into an issue where a colleague's Homebrew couldn't update.
It seems to have been because it failed once just after the new repo
directory was created. Since there was nothing in this directory, there
really isn't any reason for us to fail here, so to avoid this problem in
the future, try to `rmdir` the directory before failing because it already
exists.
2017-08-31 12:17:01 +01:00
Mike McQuaid
baa61f5a6e
Use https for all docs.brew.sh links.
...
May as well use the more secure link when possible.
2017-07-27 15:59:37 +01:00
Markus Reiter
3b4ee58c49
Refactor using Forwardable
and DelegateClass
.
2017-06-28 09:25:31 +02:00
Mike McQuaid
39b8f106d2
update-report: don't show new, installed formulae.
...
These were those migrated from other taps but if they are installed
already: they aren't new to that user.
2017-04-04 15:15:42 +01:00
Mike McQuaid
7d07d859ce
migrator: check if taps are from same user instead
...
This avoids needing to use `force: true` and still let's Homebrew do
what we want with our own taps.
2017-03-31 10:28:45 +01:00
Mike McQuaid
ffd706d997
update-report: more forceful rename migration.
...
Migrate between different taps and delete relevant subdirectories if
they can be safely. Also, tweak some naming and use utility methods.
2017-03-31 10:01:45 +01:00
Mike McQuaid
b41a88eac4
update-report: check migration symlinks.
...
Check if `HOMEBREW_CELLAR/old_name` is a symlink. If so, it's already
been migrated so can be skipped.
2017-03-21 15:21:23 -07:00
Mike McQuaid
ec0737d71f
Merge pull request #2370 from MikeMcQuaid/update-migrate-all-formula
...
update-report: migrate all formulae every time.
2017-03-21 14:40:07 +01:00
Mike McQuaid
4af8bdf111
update-report: migrate all formulae every time.
...
Unmigrated formulae cause hard-to-debug issues and relying on detection
on Git alone is faster but not comprehensive. Instead, iterate through
renamed, installed formulae every time and migrate them.
Closes #1770 .
2017-03-20 18:10:28 +02:00
Mike McQuaid
ae43415fb4
update-report: migrated formulae were not deleted.
...
The taps they were migrated to are auto-tapped if not already tapped
anyway so don't show them as deleted to avoid confusion.
2017-03-20 15:28:24 +02:00
Markus Reiter
c594ffefbc
Add Formatter::pluralize
.
2017-03-11 21:12:51 +01:00
Mike McQuaid
0a8c8f90b6
Merge pull request #1708 from joshka/feature/install-tap-cmd-completions
...
install tap cmd completions
2017-02-27 08:42:17 +00:00
Joshua McKinney
25396d9c4d
Install tap command completions and manpages
...
Taps can include completion scripts for external commands under
`completions/bash`, `completions/fish`, or `completions/zsh`. `brew tap`
will automatically install these into the correct directories during
install.
2017-02-26 15:40:52 -06:00
Zhiming Wang
95f9af24d3
update-report: unlink rather than uninstall --force formula when ...
...
migrating a formula to a cask.
2017-02-17 19:21:27 -05:00
Mike McQuaid
a3bffe70bc
Use docs.brew.sh links.
2017-01-04 11:13:41 +00:00
Mike McQuaid
ed66fa3ae5
update-report: handle homebrew/versions imports.
...
Imports from homebrew/versions are migrated from that tap and then
renamed immediately when they hit homebrew/core. This did not trigger
our previous rename detection so address these to improve the output and
handle migration correctly.
2017-01-02 17:24:52 +00:00
Mike McQuaid
c3a2bf34a2
tap_migrations: support renaming to/from casks.
...
Allow `tap_migrations` entries to have a `user/repo/formula` or
`user/repo/cask` format for migration of formulae to/from casks.
2016-12-29 13:37:28 +00:00
Mike McQuaid
d41e2ea5e8
update-report: allow skipping analytics message.
...
This is used by the install script so it can simplify it's logic and
make the analytics messaging more prominent.
2016-11-26 15:14:21 +00:00
Mike McQuaid
3469190c30
update-report: further tweak analytics output.
...
There were some bugs with the use of `HOMEBREW_NO_ANALYTICS_THIS_RUN`
and some output glitches I missed with the previous PR (#1575 ).
2016-11-26 13:58:41 +00:00
Mike McQuaid
7cd5ddfa65
update-report: further improve analytics messaging
...
- Don't output the analytics message and mark it as read if
`HOMEBREW_NO_ANALYTICS_THIS_RUN` is set. This mostly simplifies the
installer code where we can display the message ourselves there rather
than having `brew update` print it out sometimes and not others (i.e.
when there's no system Git installed).
- Use the shell's audible bell to nudge people to actually read this
message (and give them less excuse to complain when they don't).
- Add an extra newline and bold all the analytics messaging so it's
more visible in the output.
2016-11-26 12:56:02 +00:00
Mike McQuaid
276864ebd1
update-report: default Caskroom moved to prefix.
...
Look at HOMEBREW_PREFIX rather than HOMEBREW_REPOSITORY for the default
Caskroom location.
2016-11-05 15:37:28 -04:00
Markus Reiter
198bf4d3bd
Convert puts_columns
to puts Formatter.columns
.
2016-10-15 17:13:38 +02:00
Markus Reiter
9c2420a9ef
“Homebrew Cask” -> “Homebrew-Cask”
2016-10-06 18:34:20 +02:00
Markus Reiter
cafe149780
Merge pull request #1145 from reitermarkus/module-function
...
Use `module_function` for `Homebrew` module.
2016-10-04 10:31:49 +02:00
Mike McQuaid
c6f5d24238
update-test: fix tag updating, skip core tap.
...
Fix updating the `stable` branch used for tagged updates and ensure
that the core tap isn’t retapped (the slowest part by far of this test).
2016-10-02 17:16:35 +01:00
Markus Reiter
c36f42ce95
Remove private_class_method
from commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
884b268506
Use Formatter for all URLs.
2016-10-01 20:00:49 +02:00