12215 Commits

Author SHA1 Message Date
ilovezfs
a68d38743a formula: make prefix_linked? use versioned prefix
otherwise whenever prefix is unversioned, prefix_Linked will be false
2017-01-04 12:45:32 -08:00
ilovezfs
6195d6592b formula: realpath prefix before computing abv
versioned prefix is a directory, but unversioned is a symlink, so
realpath it before computing abv
2017-01-04 10:23:15 -08:00
Mike McQuaid
98dadd907e Merge pull request #1777 from alyssais/tests_tab_version
tests: remove temporary tab homebrew_version override
2017-01-04 11:37:48 +00:00
Mike McQuaid
a3bffe70bc Use docs.brew.sh links. 2017-01-04 11:13:41 +00:00
Mike McQuaid
3568cf3a40 Merge pull request #1773 from MikeMcQuaid/docs-site
Cleanup documentation site
2017-01-04 10:53:54 +00:00
Mike McQuaid
127e9def50 Cleanup documentation site
GitHub now nicely generates a documentation site for us at
http://brew.sh/brew based on our docs folder. Optimise the output of
this and the GitHub docs directory for readability and the various user
groupings.
2017-01-04 10:53:21 +00:00
Mike McQuaid
2fba252a36 Merge pull request #1775 from MikeMcQuaid/deprecate-env-std-userpaths
audit: deprecate env :std/:userpaths for strict.
2017-01-04 10:31:31 +00:00
Alyssa Ross
56d6695bf3 tab: set homebrew_version in Tab.empty 2017-01-04 00:56:06 +00:00
Alyssa Ross
b7e10ba239 tests: remove temp tab homebrew_version override
This had to be added in #1750 to work around special-casing for tabs
generated with Homebrew versions < 1.1.6. Now that 1.1.6 is the current
version, we can remove this hack.
2017-01-04 00:46:44 +00:00
Mike McQuaid
d7ab913f31 audit: deprecate env :std/:userpaths for strict.
This should apply only for new formulae but we should start gradually
phasing it out for older ones too.
2017-01-03 22:12:21 +00:00
Mike McQuaid
fc11f633b2 Merge pull request #1677 from MikeMcQuaid/formula-prefix-opt
formula: make prefix usually return opt_prefix.
2017-01-03 20:10:22 +00:00
Mike McQuaid
619791e83d Merge pull request #1768 from MikeMcQuaid/deprecate-homebrew-versions-devel-only
Deprecate Homebrew/versions, Homebrew/devel-only.
1.1.6
2017-01-03 19:59:53 +00:00
Mike McQuaid
46b43a19bc Merge pull request #1767 from MikeMcQuaid/docs-updates
General documentation updates.
2017-01-03 19:59:15 +00:00
Alyssa Ross
a175a1241e license: remove copyright ending year
See https://github.com/Homebrew/brew/pull/1771#issuecomment-270143292.
2017-01-03 18:13:36 +00:00
Alyssa Ross
6ecf2ca013 cask: remove license
See https://github.com/Homebrew/brew/pull/1771#issuecomment-270179479.
2017-01-03 18:08:02 +00:00
Mike McQuaid
bc0aa4e64c Add versions documentation. 2017-01-03 18:01:03 +00:00
Mike McQuaid
cd1579a51a Deprecate Homebrew/versions, Homebrew/devel-only.
Don't use Homebrew/versions in a test and remove them both from the
OFFICIAL_TAPS list (i.e. `brew search`).
2017-01-03 17:50:09 +00:00
Mike McQuaid
824768e26f Set theme jekyll-theme-cayman 2017-01-03 15:59:15 +00:00
Masayuki Morita
a4330f458a Use util/github insted of open-uri in GitHubReleaseDownloadStrategy 2017-01-03 15:12:53 +09:00
Masayuki Morita
248beb9bf6 Move error messages in GitHubReleaseDownloadStrategy to raise argument 2017-01-03 14:36:08 +09:00
Mike McQuaid
538028a735 Merge pull request #1766 from MikeMcQuaid/update-report-incoming-renames
update-report: handle homebrew/versions imports.
2017-01-02 20:42:57 +00:00
Mike McQuaid
91c09c5b11 General documentation updates.
Mostly related to the newer ways we’re handling versions and the
incoming deprecation of devel-only, head-only and versions.
2017-01-02 18:29:00 +00:00
Vítor Galvão
2eed2ba434 Merge pull request #1760 from reitermarkus/version-file-separator
Disallow file separator in version strings.
2017-01-02 17:49:50 +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
814a5de7f7 Merge pull request #1765 from MikeMcQuaid/force-bottle-or-later
bottles: --force-bottle feigns or_later.
2017-01-02 17:07:55 +00:00
Mike McQuaid
79f9896d2f bottles: --force-bottle feigns or_later.
When reproducing issues with software that hasn’t been bottled yet on
your version of macOS it can sometimes be helpful to use `or_later`
bottle functionality i.e. just use the bottle for the latest version of
macOS available. This maps well to the existing `--force-bottle`
argument so it will now act as if the latest bottle has a `or_later`
ending.
2017-01-02 16:05:14 +00:00
Markus Reiter
2c6516ef59 Disallow file separator in version strings. 2017-01-02 12:15:54 +01:00
Markus Reiter
e84e4b5566 Merge pull request #1745 from vitorgalvao/depends-on-arch
cask depends_on arch: remove everything but 64-bit intel
2017-01-02 12:08:21 +01:00
Masayuki Morita
b9cc52db45 New feature: GitHubReleaseDownloadStrategy
GitHubReleaseDownloadStrategy downloads tarballs from GitHub Release assets.
To use it, add ":using => GitHubReleaseDownloadStrategy" to the URL section
of your formula. This download strategy uses GitHub access tokens (in the
environment variables GITHUB_TOKEN) to sign the request.
This strategy is suitable for corporate use just like S3DownloadStrategy,
because it lets you use a private GttHub repository for internal distribution.
It works with public one, but in that case simply use CurlDownloadStrategy.
2017-01-02 15:56:55 +09:00
Vítor Galvão
294781cc9e cask depends_on arch: remove everything but 64-bit intel 2017-01-02 02:46:03 +00:00
Mike McQuaid
3e0d54d8b9 Merge pull request #1527 from alyssais/installed_dependencies
keg: update installed dependency resolution
2017-01-01 18:26:04 +00:00
Alyssa Ross
e1d7d44e5a tests: optlink fake kegs in uninstall test 2017-01-01 14:27:24 +00:00
Alyssa Ross
e4856143a6 keg: check installed dependencies iff optlinked 2017-01-01 14:27:24 +00:00
Alyssa Ross
94ead55772 keg: keg_only kegs can have installed dependents 2017-01-01 14:26:28 +00:00
Alyssa Ross
05b85a7bef keg: update installed dependency resolution
Closes #1525. (See there for a motivation for this change.)
2017-01-01 14:26:28 +00:00
Mike McQuaid
81b40f6564 Merge pull request #1761 from MikeMcQuaid/superenv-fix-stub
ENV/super: fix set_cpu_flags stub.
2016-12-31 23:11:28 +00:00
Mike McQuaid
9105ccece3 rubocop_todo: autogenerate update. 2016-12-31 22:44:15 +00:00
Mike McQuaid
f0fbcf5022 ENV/super: fix set_cpu_flags stub.
It should accept arguments.

Fixes https://github.com/Homebrew/homebrew-core/issues/8362
2016-12-31 22:44:05 +00:00
Mike McQuaid
ad593cf42c Merge pull request #1757 from alyssais/moved_formula
keg: handle dependencies of moved/renamed formulae
2016-12-31 18:39:55 +00:00
Markus Reiter
4b5489e172 Merge pull request #1759 from reitermarkus/bsexec
Remove `:bsexec` parameter from `SystemCommand`.
2016-12-31 19:19:21 +01:00
Alyssa Ross
524d9ce8f3 keg: test dep fallback with unknown formulae 2016-12-31 17:53:06 +00:00
Alyssa Ross
8b30abe060 keg: handle dependencies of moved/renamed formulae
In #1497 I switched from Keg#to_formula for comparing kegs to formulae
to comparing the name and tap in the keg's tab to the name and tap of
the formula.

However, this fails to match if the name and tap of the formula have
changed since the keg was installed, so it's clearly better to use
Keg#to_formula where possible, and fall back to the information in the
tab when #to_formula can't be used.
2016-12-31 17:53:06 +00:00
Mike McQuaid
9fa95d7218 Merge pull request #1758 from MikeMcQuaid/no-duplicate-formulae
formula, ARGV: don't output duplicate formulae.
2016-12-31 17:36:33 +00:00
Mike McQuaid
33fbf3f32d Merge pull request #1750 from alyssais/fallback_dependencies
keg: fall back for dependencies of buggy tabs
2016-12-31 17:34:55 +00:00
Mike McQuaid
1c9651f04f Merge pull request #1756 from alyssais/nil_dependents
keg: don't return nil dependencies
2016-12-31 17:34:17 +00:00
Mike McQuaid
d85a83c9dc Merge pull request #1752 from alyssais/uninstalling_dependencies
keg: fix fallback dependencies with multiple kegs
2016-12-31 17:33:08 +00:00
Mike McQuaid
82f4413964 formula, ARGV: don't output duplicate formulae.
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`.
2016-12-31 17:03:29 +00:00
Markus Reiter
ed892243cd Remove :bsexec parameter from SystemCommand. 2016-12-31 18:02:42 +01:00
Mike McQuaid
a571965df9 formula: make prefix usually return opt_prefix.
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.
2016-12-31 16:38:05 +00:00
Alyssa Ross
fb920668c8 keg: don't return nil dependencies
This is a proper fix to the problem addressed by #1510.

The problem arises when f_kegs is nil, which can happen if the name and
tap used to install a keg don't match the name and tap currently
associated with its formula (i.e. if it's been renamed or moved).
2016-12-31 14:16:38 +00:00