Mike McQuaid
5c82e0d552
Merge pull request #2526 from MikeMcQuaid/audit-gnu-mirror-flip
...
audit: flip GNU mirror preference.
2017-04-22 16:54:50 +01:00
Mike McQuaid
d02b4f321d
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.
2017-04-22 16:31:19 +01:00
Mike McQuaid
ba3c46d24f
More deprecations.
...
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.
2017-04-22 16:28:07 +01:00
Mike McQuaid
044bd974e4
Merge pull request #2484 from MikeMcQuaid/unversion-formula-tap-match
...
audit: lookup unversioned formulae with Formulary.
2017-04-22 15:04:21 +01:00
Mike McQuaid
94ef7318ae
audit: flip GNU mirror preference.
...
Now that both the primary and mirror URLs use HTTPS we can flip these
around so the primary URL is the primary URL and we don't have problems
with waiting for mirror propagation.
2017-04-22 13:10:03 +01:00
Mike McQuaid
185b1787c6
audit: lookup unversioned formulae with Formulary.
...
This means that if e.g. the unversioned formulae exists in another tap
this audit won't produce a false positive.
2017-04-22 13:00:38 +01:00
Mike McQuaid
a6df701fad
tests: reduce some noise.
...
- Tweak the way offline skipping happens
- Skip more tests that break when offline
- Hide more stdout output from tests.
2017-04-22 12:49:14 +01:00
Mike McQuaid
fdcffb25a9
Merge pull request #2482 from MikeMcQuaid/audit-dependency-options
...
audit: ensure default dependencies don't use options.
2017-04-22 11:07:16 +01:00
Mike McQuaid
3011cbac34
audit: ensure dependencies don't use options.
...
Option dependencies are nasty as they cause unnecessary builds from
source.
2017-04-21 18:24:10 +01:00
Mike McQuaid
1775c32210
audit: new formulae should not require patches.
...
We may under some circumstances accept these anyway but it's better to
nudge people into the right behaviours on local `audit`s.
2017-04-21 18:23:55 +01:00
Mike McQuaid
2be7999878
Merge pull request #2274 from rwhogg/fuse-requirement
...
Port OsxfuseRequirement to Linux
2017-04-20 17:14:42 +01:00
Steven Peters
3982d24d8b
audit: fix swapped audit messages
2017-04-19 10:59:11 -07:00
Mike McQuaid
55c02ae774
Merge pull request #2478 from MikeMcQuaid/audit-skip-methods
...
audit: allow skipping audit methods.
2017-04-18 09:18:55 +01:00
Mike McQuaid
43253ede65
create: use GitHub metadata where available.
...
GitHub provides a description and homepage field so let `brew create`
use them where possible. Also, detect GitHub repositories based on
`releases` as well as `archive`s.
2017-04-18 08:22:41 +01:00
Mike McQuaid
3f8722c971
audit: allow skipping audit methods.
...
Add `--only` and `--except` methods which can be used to selectively
enable or disable audit groups.
2017-04-18 08:17:26 +01:00
Mike McQuaid
417f49dd32
Merge pull request #2477 from MikeMcQuaid/audit-more-universal
...
audit: check for more universal usage.
2017-04-17 15:50:21 +01:00
Mike McQuaid
29b54dc16d
Merge pull request #2473 from MikeMcQuaid/audit-language-module-requirements
...
audit: deprecate language module requirements.
2017-04-17 14:20:51 +01:00
Bob W. Hogg
7b6abc7630
Only run Linux-specific tests on Linux
2017-04-15 21:20:09 -07:00
Mike McQuaid
88a75af1c3
audit: don't recommend version aliases on --devel.
...
As requested in #11462 by @neutric as this produces confusing,
incorrect output.
2017-04-10 19:03:44 -07:00
Mike McQuaid
0948d2013a
audit: deprecate language module requirements.
...
Make `brew audit` complain about language module requirements because
they provide a crappy user experience compared to vendoring and we’re
not really fixing bugs in them any more.
2017-04-10 22:42:57 +01:00
Mike McQuaid
2c370f3677
audit: check for more universal usage.
...
Also check for `ENV.universal_binary` and `build.universal?`. The prior
is still required for `wine` and the latter should never be required any
longer.
2017-04-10 22:36:39 +01:00
Mike McQuaid
3f51406212
Merge pull request #2242 from GauthamGoli/audit_custom_cops
...
Port audit_desc audit rules to a cop
2017-04-05 08:37:43 +01:00
Mike McQuaid
57b230dd5c
audit: fix core formula alias check.
...
Was missing a formula object being passed.
2017-04-04 18:38:18 +01:00
Mike McQuaid
566d3cb58b
Document all short flags.
2017-04-02 10:14:58 +01:00
Mike McQuaid
bfcfdb4f01
man: strip </?var> from Markdown output.
2017-04-02 10:14:57 +01:00
Mike McQuaid
3805850eb3
Merge pull request #2414 from sjackman/update-test-fetch-shallow
...
update-test: Use git fetch --tags --depth=1
2017-03-30 19:58:42 +01:00
Mike McQuaid
7d66e29927
Merge pull request #2399 from MikeMcQuaid/unversioned-formulae-check
...
audit: check for unversioned formulae.
2017-03-30 19:06:47 +01:00
Mike McQuaid
490252d063
Merge pull request #2392 from MikeMcQuaid/cleanup-taps
...
Update all references to taps.
2017-03-30 19:06:14 +01:00
William Woodruff
e7554b0b3f
audit: Fix cctools invocation check regular expression.
...
Additionally, ignore the cctools formula itself, since it obviously
needs to check cctools invocations.
2017-03-29 09:52:35 -04:00
William Woodruff
8608d1ea78
Merge pull request #1828 from woodruffw/audit-cctools
...
audit: Check for invocations of cctools.
2017-03-28 22:03:57 -04:00
Shaun Jackman
89f3b6d6a6
update-test: Use git fetch --tags --depth=1
...
Use git fetch --tags --depth=1 to fetch fewer commits.
2017-03-28 09:36:50 -07:00
Mike McQuaid
c3bf9bda58
update-test: improve error handling.
...
Fail if the start or end commit are missing and retry finding the
previous tag by fetching all tags if they are missing.
This should fix CI on the current Homebrew/brew `master` branch.
Closes #2404 .
2017-03-28 15:31:16 +01:00
ilovezfs
70685f3017
audit: bump whitelisted elm-format version to 0.6.0-alpha
2017-03-26 22:43:08 -07:00
Mike McQuaid
181275c016
audit: check for unversioned formulae.
...
If we're adding a versioned formulae we want to ensure that there's also
an unversioned one too.
2017-03-26 20:36:37 +01:00
Mike McQuaid
09231dd52b
Merge pull request #2393 from raza15/raza2
...
updating the exception for "kibana" for the "@" naming scheme. File changed: audit.rb
2017-03-26 19:51:25 +01:00
Mike McQuaid
2047dbd50e
Update all references to taps.
...
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
shortly be removed).
2017-03-26 19:42:35 +01:00
Raza Hussain
543529c054
indenting
2017-03-26 14:29:38 -04:00
Raza Hussain
86cf8873b6
changing if condition
2017-03-26 12:54:25 -04:00
Raza Hussain
94769652e0
simplify the regex and make a line max 80 char long
2017-03-26 12:43:09 -04:00
Mike McQuaid
e723131438
pull: optionally warn (not die) on bottle publish failure.
...
This is useful when you're pulling PRs where individual bottles can't be
uploaded/built but you still want to pull the PR as a whole anyway.
2017-03-23 10:00:33 +00:00
Mike McQuaid
08a22d013e
Merge pull request #2383 from MikeMcQuaid/docs-manpage
...
man: generate Markdown man page.
2017-03-23 08:09:49 +00:00
Mike McQuaid
650c33e73b
man: generate Markdown man page.
...
The existing `brew.1.html` wasn't particularly pleasant to read and
given everything else in `docs/` is a Markdown file it makes sense to
generate a post-processed Markdown file that can in turn be used by
Jekyll to generate a nicely themed HTML file.
2017-03-22 21:38:41 +00:00
Mike McQuaid
5fc4cabdeb
tap-new: fix symlink creation.
...
Ensure the full HOMEBREW_TAP_DIR path is created before deleting and
creating the symlink for it. This ensures that non-`homebrew` taps will
have the necessary username/organisation folder created.
Fixes #2378 .
2017-03-22 21:23:00 +00:00
Mike McQuaid
411172b9ad
Merge pull request #2375 from maxim-belkin/tests-no-temp
...
tests: unset HOMEBREW_TEMP
2017-03-21 17:32:39 +00:00
Mike McQuaid
4117d198cc
Merge pull request #1732 from zmwangx/hint-migrations
...
Hint at new location of migrated formulae
2017-03-21 17:31:31 +00:00
Maxim Belkin
8fa99fb879
tests: unset HOMEBREW_TEMP
...
Setting `HOMEBREW_TEMP` env. var [currently] breaks tests (`brew
tests`). Although this behavior looks like a bug, the solution is
straightforward: unset `HOMEBREW_TEMP`.
2017-03-21 09:31:09 -05:00
Mike McQuaid
7d068d468d
Merge pull request #2365 from MikeMcQuaid/audit-provided-by-macos
...
audit: check system dupe deps on new formulae.
2017-03-21 14:49:22 +01:00
Mike McQuaid
80e95b684e
blacklist: move to missing_formula class instead.
...
This will allow extending this class so it can be used by more than
just blacklisting.
2017-03-20 18:20:31 +02:00
Mike McQuaid
8efc0a608d
audit: deprecate depends_on :tex.
...
This has known issues with our `ghostscript` formula, we can't test it
on CI and is a ludicrously heavy dependency that in many cases can be
avoided by upstream providing prebuilt documentation.
2017-03-19 20:46:31 +02:00
Mike McQuaid
eadbd95d2c
audit: check system dupe deps on new formulae.
...
Provide a gentle nudge to users to check if these dependencies are
definitely required.
2017-03-19 20:45:21 +02:00