aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
AgeCommit message (Collapse)Author
2016-09-23Fix Style/GuardClause.Markus Reiter
2016-09-19Merge pull request #971 from penman/follow_aliasMike McQuaid
Make `brew upgrade` and `brew outdated` follow alias changes
2016-09-18install: don't install alias if already installedAlyssa Ross
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
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-11cmd/install: fix Rubocop warnings.Mike McQuaid
2016-09-07Refactor MacOS check_development_tools usage.Mike McQuaid
Better use the abstraction layer so e.g. Linux could have similarly fatal checks for these things.
2016-08-30install: die if Xcode/CLT not up-to-date on prereleasesDominyk Tiller
2016-08-10Improve formula not found handling (#96)Misty De Meo
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-29Add missing development_tools requires.Mike McQuaid
2016-07-08cmd/install: port to generic OS. (#458)Mike McQuaid
2016-07-06development_tools: add installed? method. (#455)Mike McQuaid
2016-07-04diagnostic: more porting to generic OS. (#449)Mike McQuaid
2016-07-04install: undocument --force-bottle. (#443)Mike McQuaid
This is a developer-only option I created for testing purposes. It should not be used by end-users.
2016-06-29cmd/install: use migration_needed?Vlad Shablinsky
Closes #411. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-05-19install: fix documentation of --keep-tmp option (#258)Zhiming Wang
Obvious copy/paste failure in acc9a7ca8554bc2413dee2d6d0f407b3a59c628c.
2016-05-09gist-logs: add proper documentation, improve error handling (#217)Jam
2016-05-06brew install: make -s apply only to given formula, not deps (#205)Andrew Janke
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-17install: handle FormulaClassUnavailableErrorMartin Afanasjew
Don't search for alternatives if formula was found, but has issues, as this will create confusing output, particularly for contributors working on a formula file.
2016-04-10Add all the top level commentsMax Nordlund
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-01-05doctor: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47665. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-19move CoreFormulaRepository into separate fileXu Cheng
For users whose local brew is at around 2015-06-11 to 2015-08-06, running `brew update` will emit following error: Error: uninitialized constant Formulary::CoreFormulaRepository This is caused by the same bug described in Homebrew/homebrew#42553. This commit workarounds this issue and restores `brew update` compatibility for users mentioned above. Also cleanup legacy `require "cmd/tap"`.
2015-12-10Do not `brew install brew-cask`Josh Hagins
Refs caskroom/homebrew-cask#15381 Closes Homebrew/homebrew#46845.
2015-12-09Formulary: use same logic to handle core fully-qualified nameXu Cheng
2015-12-03centralize the logic of handling `homebrew-` in Tap.fetchXu Cheng
Closes Homebrew/homebrew#46537. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-09cmd/install: check before tappingAlex Dunn
Changes introduced in dfdc570abcd7c19a7b385c2fe8c6b26b12bca646 were causing installations using fully-qualified formula names to fail.
2015-11-09use Tap#installXu Cheng
2015-10-19install: make search output more intuitive.Eric Andrew Lewis
Closes Homebrew/homebrew#42222. Closes Homebrew/homebrew#44892. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-09use directory? to check rack existenceXu Cheng
2015-08-27install: fix if isn't migratedVlad Shablinsky
2015-08-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
2015-08-21Call check_xcode check for CLT, tooWilliam Woodruff
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
add guard in Formula#file_modified? to prevent git popup add guard in Superenv.bin before calling MacOS::Xcode.version add guard against missing Xcode/CLT in Xcode.uncached_version return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21FormulaInstaller: add prevent_build_flags to eliminate code repetitionWilliam Woodruff
remove unneeded definition change variable in FormulaInstaller.check_build_flags from bf to build_flags
2015-08-21Install: add BuildToolsError and BuildFlagsErrorWilliam Woodruff
Add these new errors, and guards in formula installation and cmd/{,un,re}install to match, move can_build? to the MacOS module, flatten conditions, remove redundant can_build? check reinstate removed (doctor) check
2015-08-21MacOS: update locate_cctoolWilliam Woodruff
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if xcode is installed, otherwise emit a warning
2015-08-21Requirements: add CctoolsRequirementWilliam Woodruff
Install it as a dependency unless already satisfied by Xcode. require cctools_requirement cctools_requirement should be satisfied by cctools present in opt add build_env => false to the satify block options in CctoolsRequirement
2015-08-21Install: remove check_for_bad_install_name_toolWilliam Woodruff
Until it can be adapted to not call otool on systems w/o XCode/CLT
2015-08-15install: f.oldname can be nilXu Cheng
2015-08-14install: mention if installed formula isn't migrated.Mike McQuaid
Closes Homebrew/homebrew#42940. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-09put caveats in finish after post_install Homebrew/homebrew#42565Rafael Kitover
When running brew -v install, long post_install output from the formula, presumably from upstream, may hide the important instructions in the caveats and confuse the user. For example, postgresql runs initdb which prints its own instructions for running the database, making the caveats scroll off screen. Per xu-cheng's instructions in Homebrew/homebrew#42565 : Remove the explicit call to caveats from the install, reinstall, and upgrade commands, as well as the dependency installer code in FormulaInstaller#install_dependency , and call caveats right before the summary code in FormulaInstaller#finish . Closes Homebrew/homebrew#42565. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-06add fully qualified name for core formulaeCNA-Bld
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-17use ohai headers at the top of search resultsAlex Dunn
Closes Homebrew/homebrew#41832.
2015-07-11cmd/install: fix install warning timeout.Mike McQuaid
2015-07-11install: cleanup outdated repository warning.Mike McQuaid
2015-07-11cmd/install: check time of last update if FormulaUnavailableErrorAlex Dunn
Closes Homebrew/homebrew#40035. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-16Move 10.11 warning to doctor, pre-install, and post-failureJack Nagel
Fixes Homebrew/homebrew#40778.