Markus Reiter
9db7825606
Document Build
.
2020-08-26 03:13:58 +02:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Markus Reiter
490e503b1b
Replace Homebrew.args
with Context
.
2020-08-06 16:13:14 +02:00
Markus Reiter
bace9ecc34
Pass verbose?
to Formula#verify_download_integrity
.
2020-08-06 16:13:14 +02:00
Markus Reiter
6c964d4a78
Pass verbose?
to Keg#link
, Keg#unlink
and Keg#optlink
.
2020-08-06 16:12:52 +02:00
Markus Reiter
5caafe413e
Pass debug?
to Formula#brew
and Formula#run_test
.
2020-08-06 16:12:52 +02:00
Bo Anderson
7f46d4ec3c
build, test: set Homebrew.args
2020-08-01 18:27:15 +01:00
Bo Anderson
20c6a3f325
build, test: fix debrew not working
2020-08-01 18:26:56 +01:00
Markus Reiter
05365b5542
Pass args
more explicitly in FormulaInstaller
.
2020-07-30 03:21:12 +02:00
Markus Reiter
276c570c16
Pass individual args explicitly to ENV
extensions.
2020-07-28 02:52:45 +02:00
Markus Reiter
25b3632c4c
Pass args
to ENV
instead of using global args
.
2020-07-25 03:57:43 +02:00
Markus Reiter
6b0b25cd00
Pass keep_tmp?
and interactive?
instead of using global args
.
2020-07-25 02:37:10 +02:00
Markus Reiter
9176c62246
Pass args
to build
instead of using global args
.
2020-07-25 02:37:10 +02:00
Jonathan Chang
76709d82c5
Fix brew style
.
2020-07-13 23:24:14 +10:00
Mike McQuaid
bc27e38f18
Remove ARGV.debug?
...
Replace with `Homebrew.args.debug?`.
Part of #5730 .
2020-05-23 14:38:58 +01:00
Mike McQuaid
8b98ed1f47
Further tweak :test dependency handling
...
- ensure that cases where `:build` and `:test` both apply to a
dependency that we handle it appropriately
- fix reintroduced regression
(https://github.com/Homebrew/brew/pull/6471#issuecomment-533414923 ).
Fixes #6470 .
2020-05-19 14:25:10 +01:00
Mike McQuaid
6ed1ccd8e8
Fetch (all) resources when building from source
...
Also:
- when `brew test` or `brew postinstall` is run allow `Resource#stage`
to fetch the resource.
- make `Formula#fetch` and `Resource#fetch` fetch external patches too.
Follow-up from #7549 and #7546 .
2020-05-12 12:37:54 +01:00
Mike McQuaid
996773a948
Merge pull request #7176 from GauthamGoli/argv-cleanup-14
...
ARGV: Deprecate ARGV.ignore_deps?
2020-03-16 13:02:42 +00:00
Gautham G
9d3951dc4c
ARGV: Deprecate ARGV.ignore_deps?
2020-03-15 19:05:09 +05:30
Gautham G
badcaa15e4
ARGV: Deprecate ARGV.keep_tmp?
2020-03-15 13:24:48 +00:00
Gautham G
fde11efdf3
ARGV: Deprecate ARGV.git?
2020-03-15 18:32:21 +05:30
Gautham G
1292c4559c
ARGV: Deprecate ARGV.interactive?
2020-03-15 16:28:04 +05:30
Gautham G
8ce7a55add
build.rb: Use CLI::Parser to parse args
...
Fixes #7008
2020-02-11 23:56:38 +05:30
EricFromCanada
b817796562
Grammar fixes for status messages
2019-12-02 11:38:06 -05:00
Jonathan Chang
7ddc185b35
Fix various typos
2019-08-19 16:12:34 +10:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
EricFromCanada
15c38a2d8b
formatting fixes
2019-04-13 21:29:32 -04:00
Andrew Janke
257e245944
Fix bogus comparison operation that was breaking error handling
2018-12-25 17:19:23 -05:00
William Woodruff
b7d84f2d9e
build: Propagate entire ErrorDuringExecution
...
Fixes https://github.com/Homebrew/brew/issues/5427 .
2018-12-23 11:26:12 -05:00
Mike McQuaid
737b84b54b
brew style --fix
fixes.
2018-11-02 17:29:23 +00:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
William Woodruff
367629d289
utils: Use JSON to marshal child errors
...
Replaces our serialization of child process
errors via Marshal with JSON, preventing
unintentional or malicious code execution outside
of the build sandbox.
Additionally, adds tests for the new behavior.
2018-09-04 11:03:32 -04:00
Mike McQuaid
80d75bc0d8
Homebrew/.rubocop: tweak rules.
...
Adjust the rules based on the current codebase. Remove various enable,
disables and default values that are unnecessary. Add more comments
explaining why. Make minor changes needed to enable a few more rules.
2018-09-02 20:15:09 +01:00
Mike McQuaid
7df5b7057e
Revert "Use JSON to marshal errors from children"
2018-08-18 08:20:13 +01:00
William Woodruff
5c90833f0a
Use JSON to marshal errors from children
2018-08-17 15:23:08 -04:00
Shaun Jackman
76bfd0cecb
Add superenv for Linux
2018-05-18 16:58:21 -07:00
Mike McQuaid
592bafe24e
Refactor dependencies usage
...
Reuse more code to avoid errors due to duplication.
2018-03-24 16:55:16 +00:00
ilovezfs
e0a5284d7b
Revert "build: do not skip runtime deps of buildtime deps"
2018-03-21 05:30:51 -07:00
Viktor Oreshkin
2e33541278
build: do not skip runtime deps of buildtime deps
...
Fix #3883
Revert 2fb5ead38a7632ff6f941909474767883a9e0252
2018-03-12 22:36:47 +03:00
Mike McQuaid
b70b5429d0
Deprecate default_formula Requirement DSL
...
This has been a nightmare in terms of the complexity to our dependency
system and the whack-a-mole required on bugs. If a Requirement resolves
to a Formula it should just use `depends_on "formula"` instead. This
matches the effective behaviour all users of bottles (the vast majority
of users and installs) and what we're doing in Homebrew/homebrew-core.
2018-01-14 13:27:43 +00:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
ilovezfs
732bf2212d
build: fix HOMEBREW_FORMULA_PREFIX for head
...
so that it includes the commit.
2017-09-10 02:51:16 -07:00
Misty De Meo
8e645dfbec
build: use with_env helper
2017-07-15 17:40:55 -07:00
Mike McQuaid
0158cc2e23
build: don't assume requirement dependency is default formula.
2017-01-11 12:01:08 -08:00
Mike McQuaid
3396d479d2
build: write options to file.
...
These can be useful for later inspection or upload by `gist-logs` if
there's a failed install and it's unclear from logs alone what options
were used.
2016-10-30 16:14:51 -04:00
Markus Reiter
a5b11a6a5c
Fix Style/GuardClause.
2016-09-23 15:30:07 +02:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Zhiming Wang
e82347b233
Restrict TMPDIR etc. changes to install, post_install and test
...
See discussion in Homebrew/brew#800 .
2016-08-26 12:39:27 +08:00
Mike McQuaid
602fb0e575
Make -no_weak_imports opt-in.
...
The experiment to add `-no_weak_imports` unconditionally has been a bit
of a failure. It's broken more than it's fixed and I don't think we can
have this as a default for Xcode 8.
Add `ENV.no_weak_imports` to be used by formulae authors and make
`ENV.no_weak_imports a no-op (for now).
We may reconsider this behaviour in future.
2016-08-22 10:39:38 +01:00
Mike McQuaid
3c65298519
build: permit weak imports in Go reverse deps.
...
Go makes extensive use of weak imports so we need to allow them when
building Go-using software.
Closes https://github.com/Homebrew/homebrew-core/issues/4047 .
2016-08-20 16:45:02 +01:00