| Age | Commit message (Collapse) | Author |
|
Otherwise Bash can cache a relative PATH and then get upset when it
changes directory and cannot find it any more.
Closes Homebrew/homebrew#48493.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
This should help to avoid collisions with external commands and other
shell functions in the future and is closer to what we do in Ruby, where
commands are namespaced by being methods of the `Homebrew` module.
|
|
|
|
Remove the executable bit from the file to make it clear it is not
supposed to be executed directly. This should make the shebang line and
the early check also unnecessary.
|
|
This would be displayed more than once when verbose output was enabled.
Closes Homebrew/homebrew#48469.
|
|
We cached the tab file content during formula loading.
Let's discard them, so we can read tab content after relocation
|
|
|
|
Allow people to run this command (so we can ask people to test it)
without having to set `HOMEBREW_DEVELOPER`.
Closes Homebrew/homebrew#48260.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
|
|
GithubGistFormula inherits from ScriptFileFormula so a problem is added
for each one instead of the first only.
|
|
Per @UniqMartin's advice, avoid disabling shellcheck rules.
Closes Homebrew/homebrew#48286.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Per @UniqMartin's advice, the original code will fail to handle flags
like `-vd`, because once a case is handled, no other cases are evaluate.
|
|
When invoking --simulate-from-current-branch, we shouldn't do any file
manipulation.
|
|
* only set HOMEBREW_UPDATE_BEFORE inside pull instead of fetch.
* fix HOMEBREW_UPDATE_BEFORE/AFTER variable settings. They should be set
to INITIAL_REVISION and CURRENT_REVISION correspondingly.
* avoid unnecessary duplicated shellout.
* remove unused variable.
|
|
|
|
* make sure exit after reset.
* more wide guardian range. We should trap reset_on_interrupt as soon as
we are about to change any files.
* check INITIAL_BRANCH against UPSTREAM_BRANCH
|
|
rename_taps_dir_if_necessary must be performed before actual update.
Otherwise, it will report that `HOMEBREW_UPDAET_BEFORE<REPO_VAR>` is
unset.
|
|
* use HOMEBREW_REPOSITORY instead of HOMEBREW_PREFIX
* better performance:
* update-bash: avoid shellout
* update-report: use strip_prefix and tr
* more robust:
* explicitly handle the case when repo is HOMEBREW_REPOSITORY to avoid
to handle the trailing backslash.
* handle both lower case and upper case when stripping non alpha and
digital characters.
|
|
|
|
|
|
|
|
|
|
|
|
Simplify running a single test (or even a single method from a single
test), which is useful when developing or debugging a test. Instead of
`brew test TEST=test_diagnostic.rb TESTOPTS=--name=test_check_DYLD_vars`
it is now possible to run `brew tests --only=diagnostic/check_DYLD_vars`
to get the same effect. Similarly, `brew tests --only=diagnostic` maps
to `brew test TEST=test_diagnostic.rb`.
Closes Homebrew/homebrew#48279.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
This parameter is printed by every `brew tests` run and feeding it back
into the test suite allows to get an identical run. Make it easier to
do that by accepting the argument as it is printed during `brew tests`.
This requires a slight adjustment to named-argument passing as the
number that follows `--seed` is also seen as a named argument, but we
usually only want to pass `TEST=<something>` and `TESTOPTS=<something>`.
|
|
Closes Homebrew/homebrew#48192.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
|
|
Closes Homebrew/homebrew#48281.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
Closes Homebrew/homebrew#48268.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
This reverts commit 5dd200c6b40f4fa9cc3a70cbc9ca2885e4626943.
Closes Homebrew/homebrew#47889.
|
|
Closes Homebrew/homebrew#48209.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
Extending the current search functionallity to search in
https://github.com/caskroom/homebrew-versions
Closes Homebrew/homebrew#47954.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Currently `brew install —build-from-source wget` builds all the
dependencies also from source. I can see people wanting to do this when
`HOMEBREW_BUILD_FROM_SOURCE` is set by passing it on the command-line
is mostly just annoying; it means you have to use `—build-bottle` and
deal with the CFLAGS and `post_install` changes if you want to build
from source. Tweak `formula_installer` so this behaviour is more
intuitive.
Closes Homebrew/homebrew#47889.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
This will become the default updater at a later point in the future.
|
|
Stop using Style/TrailingComma as it is no longer recognized and start using
Style/TrailingCommaInArguments and Style/TrailingCommaInLiteral instead.
Closes Homebrew/homebrew#48144.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
It helps to reduce overhead.
Closes Homebrew/homebrew#48108.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
* Check revision decrease against both stable and devel spec.
* Check revision reset only for stable spec if stable spec is available.
|
|
After formula updates its bottle block, remove itself from changed
formulae list. Therefore, if it's requested next time as dependency, it
will be installed from bottle just created.
Closes Homebrew/homebrew#48121.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Otherwise, we may get incorrect result when preforming set operations on
list of formula names.
|
|
|
|
|
|
|
|
Closes Homebrew/homebrew#48068.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
* Avoid unnecessary stage overhead
* Support different download strategy, e.g. `git`.
|
|
|
|
Also simplify the code and add Travis auto detect.
Closes Homebrew/homebrew#48060
|
|
Add two checks:
* revision should be reset to 0 for new version.
* revision should not decrease inside the same version interval.
Closes Homebrew/homebrew#48032.
Signed-off-by: Xu Cheng <xucheng@me.com>
|