Rylan Polster
f7fa5937d8
Allow brew info --json=v2
without taps with JSON API
2023-02-12 12:03:40 +00:00
Xuehai Pan
176637acd8
formulary: respect HOMEBREW_BOTTLE_DOMAIN
when installing from API
2023-02-07 13:03:25 +00:00
Mike McQuaid
ca95704c95
Merge pull request #14520 from Bo98/api-source
...
Better support source builds under API mode
2023-02-06 16:05:14 +01:00
Bo Anderson
2055792791
Better support source builds under API mode
2023-02-06 13:27:36 +00:00
Bo Anderson
33681f90e3
Add HEAD information to JSON API
2023-02-06 13:06:39 +00:00
Bo Anderson
83b23e6d5e
Fix license handling for API formulae
2023-02-06 10:09:40 +00:00
Rylan Polster
cc78b155c6
Add stable checksum to the JSON API
2022-10-21 01:22:36 -04:00
Rylan Polster
f66b5ff208
Include test deps when loading a formula from the API
2022-09-21 02:53:58 -04:00
Bo Anderson
0a7063ac51
formulary: fix error with absolute alias paths
...
Fixes #13883 .
2022-09-19 02:35:01 +01:00
Mike McQuaid
6eaa510615
Merge pull request #13842 from Rylan12/api-in-tab
...
Include `loaded_from_api` key in `Tab`
2022-09-15 09:16:58 +01:00
Rylan Polster
e8f2d8f6c5
Load formulae from their aliases using the API
2022-09-14 23:59:10 -04:00
Rylan Polster
b44f715f82
Include loaded_from_api
key in Tab
2022-09-14 22:23:01 -04:00
Rylan Polster
233cef08cf
Fix style
2022-07-25 18:31:35 +02:00
Rylan Polster
d4e5886571
Simplify checking for variations hash availability
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-07-25 17:43:54 +02:00
Rylan Polster
bae5abda82
Remove uses_from_macos
dep duplication in FormulaAPILoader
2022-07-25 08:49:19 +02:00
Rylan Polster
7392f9811e
Formulary
: use variations hash when installing from API
2022-07-24 22:59:42 +02:00
Gregory Anders
f387c7f0b2
Require deprecate_disable module in formulary
...
This solves a recurrent issue where various brew commands (e.g. doctor,
cleanup) would print the following stack trace:
Error: uninitialized constant Formulary::DeprecateDisable
Did you mean? DeprecatedOption
/opt/homebrew/Library/Homebrew/formulary.rb:269:in `convert_to_deprecate_disable_reason_string_or_symbol'
/opt/homebrew/Library/Homebrew/formulary.rb:171:in `block in load_formula_from_api'
/opt/homebrew/Library/Homebrew/formulary.rb:139:in `initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:139:in `new'
/opt/homebrew/Library/Homebrew/formulary.rb:139:in `load_formula_from_api'
/opt/homebrew/Library/Homebrew/formulary.rb:519:in `load_from_api'
/opt/homebrew/Library/Homebrew/formulary.rb:510:in `klass'
/opt/homebrew/Library/Homebrew/formulary.rb:296:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:542:in `factory'
/opt/homebrew/Library/Homebrew/formulary.rb:565:in `from_rack'
/opt/homebrew/Library/Homebrew/cleanup.rb:85:in `stale_formula?'
/opt/homebrew/Library/Homebrew/cleanup.rb:58:in `stale?'
/opt/homebrew/Library/Homebrew/cleanup.rb:356:in `block in cleanup_cache'
/opt/homebrew/Library/Homebrew/cleanup.rb:339:in `each'
/opt/homebrew/Library/Homebrew/cleanup.rb:339:in `cleanup_cache'
/opt/homebrew/Library/Homebrew/cleanup.rb:222:in `clean!'
/opt/homebrew/Library/Homebrew/cmd/cleanup.rb:58:in `cleanup'
/opt/homebrew/Library/Homebrew/brew.rb:93:in `<main>'
2022-07-19 06:29:14 -06:00
Rylan Polster
b63474398e
Always prefer loading from API when HOMEBREW_INSTALL_FROM_API
is set
2022-06-17 13:54:05 -04:00
Rylan Polster
15cf890ed7
Fix caveats when loading from the API
2022-06-16 20:24:22 -04:00
Rylan Polster
3cf86dad30
Handle deprecate/disable symbols when loading from the API
2022-06-16 16:22:59 -04:00
Rylan Polster
dd81ca57ca
Cleanup
2022-06-16 13:26:51 -04:00
Rylan Polster
996ca83a73
Don't ignore errors when loading from the API
2022-06-15 16:57:15 -04:00
Rylan Polster
ccd46af7c6
Cleanup
2022-06-14 16:42:10 -04:00
Rylan Polster
90c6aef0f0
Fix style
2022-06-14 16:06:05 -04:00
Rylan Polster
e53ccbc3cd
Remove unnecessary code
2022-06-14 16:06:05 -04:00
Rylan Polster
827acd3dc6
Align API loading with other formula loading
2022-06-14 16:06:05 -04:00
Rylan Polster
944d7eebf0
Add bottle rebuild when loading from API
2022-06-14 16:06:05 -04:00
Bo Anderson
1d36c42fb7
Support offline usage under HOMEBREW_INSTALL_FROM_API
2022-06-14 16:06:05 -04:00
Alexander Bayandin
7fb74cb1dc
Fix error message duplication for installation from URL
2021-12-03 13:15:42 +00:00
fn ⌃ ⌥
db0c1d999b
Print warning if given old short name of renamed formula
2021-11-17 22:20:48 -08:00
Rylan Polster
5f4d4fb3fb
Cleanup
2021-10-31 00:27:05 -04:00
Rylan Polster
ae457a8028
Fix loading formulae from core tap
2021-10-30 23:54:01 -04:00
Rylan Polster
268a32f0aa
Handle depends_on "homebrew/core/foo"
for HOMEBREW_INSTALL_FROM_API
2021-10-29 14:03:24 -04:00
Bo Anderson
267dd32a34
formulary: fix keg resolving not setting force_bottle
2021-10-26 15:07:18 +01:00
Rylan Polster
0b8032d421
Document HOMEBREW_INSTALL_FROM_API
2021-10-22 12:37:57 -04:00
Rylan Polster
5d536d66fc
Rename HOMEBREW_JSON_CORE
to HOMEBREW_INSTALL_FROM_API
2021-08-27 00:24:15 -04:00
Nanda H Krishna
5ccfbcd1d2
Autocorrect style issues with brew style --fix
2021-07-08 12:36:39 +05:30
Rylan Polster
044da5d5ac
Fix style
2021-06-18 15:30:14 -04:00
Rylan Polster
60203afdd5
Merge env variables into HOMEBREW_JSON_CORE
2021-06-18 12:10:26 -04:00
Rylan Polster
1d516b628b
Use #present?
and #blank?
to check env variable
2021-06-18 12:07:34 -04:00
Rylan Polster
2760d981d3
Allow for homebrew/core to be untapped
2021-06-17 14:18:43 -04:00
Rylan Polster
8b04bcb994
Only allow mapping with environment variable
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-16 10:27:15 -04:00
Rylan Polster
618c41926b
Allow strings to be passed, too
2021-06-15 11:32:04 -04:00
Rylan Polster
75c1a23f63
Rename method to ::map_name_to_bottle
2021-06-15 11:21:59 -04:00
Rylan Polster
e9631d969c
Formulary: add ::map
to map formula refs
2021-06-14 12:01:01 -04:00
Bo Anderson
f174d4363f
extend/pathname: limit write
override to a refinement
2021-05-04 14:20:20 +01:00
Bo Anderson
49285fb88c
formulary: introduce ignore_errors parameter
2021-04-14 12:37:22 +01:00
Mike McQuaid
8800b85f64
More GitHub Packages bulk upload fixes
...
- replace invalid non-ASCII characters from the descriptions
- handle invalid macOS versions on attempting to load old formulae from
old bottles
- let `rubocop` auto-remove a no-longer needed `rubocop:disable`
- fix `skopeo` credentials argument
2021-04-07 17:03:44 +01:00
Mike McQuaid
1942e60a37
formulary: fall back on missing bottle formula.
...
These aren't available on old macOS version bottles.
2021-04-01 17:37:16 +01:00
Mike McQuaid
d8a2cf9efc
Write tabs to bottle JSON, optionally not bottle
...
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier JSON to disk.
- Don't write `HEAD` to tab; this duplicates `HOMEBREW_VERSION`.
- Allow `brew bottle` to use `--json` to generate JSON files from a
local bottle file.
2021-03-31 09:43:37 +01:00