| Age | Commit message (Collapse) | Author |
|
Closes #402.
|
|
|
|
Closes #411.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
|
|
|
|
Move dylib_path and bundle_path from test_mach to testing_env to
accommodate the new tests.
Closes #400.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
|
|
This is inspired by `safe_system` with basically the same implication
(fail on error), making the name a lot less confusing and avoiding a
clash with the `chdir` function previously defined in `bin/brew`.
Closes #414.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
This reverts commit 3e5e14a59580325faf397b48d62a52f0013a17f2.
|
|
This reverts commit 62d7079684cdb568600e22531c62888622a71ff1.
|
|
Move dylib_path and bundle_path from test_mach to testing_env to
accommodate the new test.
Closes #400.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
|
|
|
|
|
|
|
|
|
|
This commit adds a --tap option to the create command such that a user
could create a formula in a specified tap instead of the core.
|
|
The `ensure` block can be reached before the tab is modified (and thus
before `original_tab` gets populated). Avoid raising an exception when
attempting to restore a tab that hasn't been modified yet, e.g. because
relocating some of the Mach-O binaries failed.
|
|
* Fix regression caused by 05649cee60e5349afc328070a0c0e4f6835f97f0
* Use `Tap#formula_file?` to filter formula.
|
|
|
|
* audit.rb: require https for ftpmirror.gnu.org
The situation is similar to other mirror redirectors: the server
may subsequently redirect to an insecure url. But it's a step.
* manpage: update HOMEBREW_NO_INSECURE_REDIRECT section
|
|
|
|
|
|
|
|
Don't force installation of the `hub` formula if it can be found in the
search path. (Avoids unnecessary installation when switching between
multiple Homebrew installations for different tasks.)
Closes #384.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
In local-only mode, the created branches end up tracking `origin/master`
which isn't desirable.
|
|
Allow boneyarding a formula locally, i.e. make all the necessary changes
in the local repositories but don't push them to a remote and don't open
a pull request automatically.
|
|
This should make more bottles relocatable e.g. ansible.
.pyo files are bytecode as .pyc files but optimized -
[ref](https://www.python.org/dev/peps/pep-0488/)
Ref https://github.com/Homebrew/homebrew-core/pull/2125#issuecomment-226987124
|
|
Closes #378.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
MachOFile#cputype now returns a Symbol.
|
|
|
|
|
|
|
|
Move check for emptiness into the display method, avoiding repetitive
checks on the call site.
Closes #381.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
|
|
Prevent raising an error when `HOMEBREW_RUBY_MACHO=1` is set. Skipping
symlinks and directories while iterating over a directory structure to
find Mach-O binaries makes sense and similar logic is applied elsewhere.
|
|
Closes #377.
Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
|
|
|
|
Prefer `Utils.git_version` instead of duplicating version detection
logic. Decouple unnecessary conflated availability and version checks.
Closes #351.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
Due to our SCM wrapper in `Library/ENV/scm/git`, lookup is a bit more
complicated than just picking the first match in `PATH`. Make debugging
easier by printing the version and path of the Git actually used by us.
|
|
|
|
Print path of first detected Git instead of executing it. This is hidden
behind a `--homebrew=print-path` argument that is unlikely to conflict
with any existing or future Git flags.
|
|
If we're bumping the formula's stable version, then we also must reset
the formula revision to zero.
Note that if and only if a revision is being removed, this commit will
enforce the convention that there should be a blank line before a simple
head spec if and only if there is a formula revision. Any preexisting
violation of the convention (in particular, a blank line before a simple
head spec in the absence of a formula revision) won't be proactively
corrected since we'd not be removing a formula revision in that case.
Closes #369.
Signed-off-by: ilovezfs <ilovezfs@icloud.com>
|
|
- simulate version change for dry-run
- make sure we're using :devel version if called with --devel
Closes #318.
Signed-off-by: ilovezfs <ilovezfs@icloud.com>
|
|
Add SharedEnvExtension#gcc_with_cxx11_support? to centralise the
logic for checking whether a compiler is known to support C++11.
Update logic to accept GCC 4.8 and above (including 6). Thereby also
address oversight in #163 where support for GCC 6 was added without
updating the C++11 compiler whitelist.
Add tests for Superenv#cxx11.
Closes #346.
|
|
|
|
|
|
They may not but it's nice to be a bit more explicit.
|
|
|
|
|