| Age | Commit message (Collapse) | Author |
|
Also, don't delete them after that. This means that `brew postinstall`
becomes a way to easily reinstall configuration files for any formula
without needing any changes to any bottles or requiring a reinstall.
|
|
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
|
|
Hide sensitive tokens from install/test/post.
|
|
Hide these tokens to avoid malicious subprocesses e.g. sending them
over the network. Also, support using these tokens with environment
filtering and clear `HOMEBREW_PATH` from subprocesses to stop them
sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s
PATH for e.g. `brew doctor` etc.
|
|
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
|
|
The documentation should help a developer understand what the
parameter is for. "stupid example" doesn't cut it.
|
|
MikeMcQuaid/formula-missing-dependencies-handle-unavailable-formula
formula: handle missing deps when formula missing.
|
|
Otherwise return `nil`.
Fixes https://github.com/Homebrew/brew/issues/2417
|
|
We could try and get a partial result but given it'll also be wrong it
feels simpler to just return an empty array.
Fixes #1928.
Fixes #2027.
Closes #2058.
Fixes https://github.com/Homebrew/homebrew-core/issues/11827.
|
|
formula: clarify caveats usage.
|
|
|
|
|
|
`brew cleanup` should cleanup formulae which have the older
version scheme.
|
|
Which, in turn, provides them for `brew info --json=v1` so other tools
such as e.g. `brew bundle` can make use of this information.
|
|
This is used to indicate a formula is a version of another formula.
This will be used to provide a consistent interface for older formulae
versions and replaces the use of `conflicts_with`.
|
|
When a Requirement is converted to a Formula it should be listed under
the runtime dependencies.
|
|
Which, in turn, provides it for `brew info --json=v1` so other tools
such as e.g. `brew bundle` can make use of this information.
|
|
Fix abv and prefix_linked?
|
|
|
|
Use docs.brew.sh links.
|
|
|
|
otherwise whenever prefix is unversioned, prefix_Linked will be false
|
|
versioned prefix is a directory, but unversioned is a symlink, so
realpath it before computing abv
|
|
|
|
formula: make prefix usually return opt_prefix.
|
|
If you specify a formula more than once or it exists in the Cellar with
an alias name and the main name (e.g. `qt` and `qt5`) you can see the
same formula showing up more than once. Instead, resolve these output
lists of formulae such that they are unique based on their `name`. This
doesn't use `full_name` as it's `name` that's use for the `Cellar`.
|
|
Return `opt_prefix` if it exists and `prefix` is not called from within
the same formula's `install` or `post_install` methods. Otherwise, fall
back to the existing functionality.
This avoids the need to use `opt_prefix` etc. everywhere and generally
means we don't expose an implementation detail (i.e. the full Cellar
path) to dependents that have a habit of hard-coding it.
|
|
|
|
This properly addresses Homebrew/homebrew-core#7826.
|
|
This reverts commit 862c3ba4a2fb76140e46fdf49a1ea6857f140a29.
|
|
audit: flag use of "fails_with :llvm".
|
|
|
|
Also, add TODOs for deprecating this properly at a later point.
|
|
formula: runtime deps of build deps aren't runtime
|
|
caveats: Differentiate zsh completion files and function files
|
|
Allow to install any spec
|
|
|
|
Fish shell allows third-party software vendors to put their own function files in a directory for their software.
For brew installed Fish shell, this is /usr/local/share/fish/vendor_functions.d
|
|
* `Formula#linked?` returns true if formula linked
* `Formula#optlinked?` returns true if formula linked to opt
formula installed to the Cellar
* `Formula#prefix_linked?` returns true if linked keg points to the prefix
passed as an argument
* `Formula#linked_version` to get linked version of the formula
|
|
Fixes #1554 (but only for new installations)
|
|
|
|
Fix flaky tests.
|
|
Fix regression caused by #1364.
|
|
|
|
uninstall: refuse when dependents still installed
|
|
...and update man pages where applicable
|
|
|
|
Closes #934.
|
|
|
|
* Causes a bug in Formula#installed_alias_target_changed? when
Formula#superseds_an_installed_formula? returns true because
Formula#old_installed_formulae includes f for some Formula f.
* Causes a bug when foo@2.4 with alias foo has HEAD or devel version and
we try to `brew upgrade foo --devel|--HEAD` from stable. The upgrade fails
while since we installing formula to the same prefix it's alredy installed.
The reason for that is that we use
`formula_to_install = outdated.map(&:latest_formula)` in cmd/upgrade
before calling upgrade_formula on foo.
```ruby
def latest_formula
installed_alias_target_changed? ? current_installed_alias_target : self
end
```
Formula#installed_alias_target_changed? compares formulae using
Formula#==, which is wrong for this case, thus Formula#latest_formula doesn't
return self and returns Formula#current_installed_alias_target with spec
foo was initially installed instead of devel or HEAD, causing the error.
|