Bo Anderson
5137244c92
download_strategy: adjust --insecure warning wording
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-10-04 20:04:50 +01:00
Bo Anderson
cb0a90262d
download_strategy: remove redundant conditional
2021-10-04 17:16:20 +01:00
Bo Anderson
5dc46a9e12
Use --insecure to download ca-certificates
source where necessary
2021-10-04 16:37:44 +01:00
Kurt Raschke
f05f3ad345
Replace two calls to undefined silent_command! in FossilDownloadStrategy with command!
...
`FossilDownloadStrategy` attempts to call `silent_command!` in two places; this does not exist.
2021-09-08 00:09:31 -04:00
Sam Ford
f88966a8a5
Use curl options where appropriate
2021-09-07 14:13:19 -04:00
Bo Anderson
d756d05a23
Merge pull request #11871 from Bo98/headers-type
...
download_strategy: fix error when using custom headers with a redirect
2021-08-18 13:43:06 +01:00
Bo Anderson
de15cd6420
download_strategy: fix error when using custom headers with a redirect
2021-08-18 03:02:13 +01:00
Michka Popoff
07df4a7e70
Use Homebrew curl for audit and fetch when specified in the formula
...
Introduce new :using for urls
2021-08-17 13:35:55 +02:00
yahavi
285513fd65
Allow anonymous access in private registries
2021-08-04 18:52:52 +03:00
yahavi
d8d1922fec
Error raised when no headers defined in curl download
2021-07-27 16:17:46 +03:00
yahavi
1116580502
Implement code review comment
2021-07-27 09:55:22 +03:00
yahavi
0335d8c0bc
Fix code review comments + disable authorization on redirections
2021-07-26 19:07:23 +03:00
yahavi
cc12738f8e
Allow anonymous access in private registries
2021-07-26 09:58:34 +03:00
yahavi
b8954030e3
Add support for private registry
2021-07-25 10:50:12 +03:00
Rylan Polster
9db79ce247
LocalBottleDownloadStrategy: extend Pourable
2021-06-10 14:51:19 -04:00
Mike McQuaid
2ce6cd5e81
brew style --fix
2021-05-18 11:58:44 +01:00
cnnrmnn
bab8f32405
Stop using shallow clones
2021-05-05 10:38:56 -04:00
Shaun Jackman
e160c4a401
GHCR: Authorization bearer requires a token
2021-04-07 20:42:12 -07:00
Mike McQuaid
cdaeee03c4
GitHub Packages cleanup
...
- `download_strategy`: only request image index JSON for downloading
the manifest for the tab
- use a shared `OS` constant for the version of `glibc` we use in CI
- fix `skoepeo` typo
- ensure that blank hash values are deleted (again) rather than just
`nil` ones
- use a shared `Hardware::CPU` constant for oldest CPU we're
supporting/using on Intel 64-bit
- re-add comment to `software_spec`
2021-04-05 14:58:17 +01:00
Shaun Jackman
9c54259dfe
CurlGitHubPackagesDownloadStrategy: Add Accept
...
Add HTTP header Accept: application/vnd.oci.image.index.v1+json
2021-04-04 00:56:22 -07:00
Markus Reiter
5cca3c5fd7
Mark cached_location
and url
public.
2021-04-03 20:10:33 +02:00
Markus Reiter
24c9b599a6
Revert "Revert "Merge pull request #10864 from reitermarkus/command-timeout""
...
This reverts commit 57b2660cae8cf43efd2b88d84a7174706328c001.
2021-04-03 20:10:32 +02:00
Mike McQuaid
8144fdef78
Simplify CurlGitHubPackagesDownloadStrategy usage
2021-04-01 17:37:16 +01:00
Mike McQuaid
7b9b9e16ec
download_strategy: fix whitespace.
2021-04-01 17:37:15 +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
Mike McQuaid
d36e99c17c
GitHub Packages tweaks
...
- cleanup comments from #10938
- fix download URL
- remove incorrect comment
2021-03-30 08:42:15 +01:00
Mike McQuaid
86130efd58
download_strategy: use GitHubPackages constant.
2021-03-29 14:37:08 +01:00
Rylan Polster
b9a8f615d8
CurlGitHubPackagesDownloadStrategy: revert allowing timeouts
2021-03-24 01:54:19 -04:00
Rylan Polster
57b2660cae
Revert "Merge pull request #10864 from reitermarkus/command-timeout"
...
This reverts commit d55bdd3ddbe7ff2b1f106a41bd994dc117ca5142, reversing
changes made to 3c3bf1c74d1d7ef1d2c792719574623b6c3c4d25.
2021-03-24 01:22:18 -04:00
Mike McQuaid
74f31af8d4
github_packages: use skopeo.
...
`skopeo` allows replacing `docker` and `oras` with a single tool that
behaves in a way that's a little more intuitive for us (we build the
directory structure on disk and upload that). It seems to be better at
preserving our metadata, too.
Take the opportunity for writing out more metadata ourselves to split
out more logic into separate functions.
While we're here, fix the `download_strategy` timeout handling for
GitHub Packages.
2021-03-19 21:09:18 +00:00
Mike McQuaid
d55bdd3ddb
Merge pull request #10864 from reitermarkus/command-timeout
...
Allow specifying timeouts for commands and downloads.
2021-03-18 13:15:42 +00:00
Markus Reiter
712a95fdd0
Allow specifying timeouts for commands and downloads.
2021-03-16 18:15:21 +01:00
Bo Anderson
977cad1599
download_strategy: take basename of response-content-disposition query
2021-03-16 15:06:17 +00:00
Mike McQuaid
1d32dc9067
Support downloading bottles from GitHub Packages
2021-03-12 14:11:24 +00:00
Mike McQuaid
37f7b9ee73
Merge pull request #10750 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.10.0
...
build(deps): bump rubocop-performance from 1.9.2 to 1.10.0 in /Library/Homebrew
2021-03-01 15:13:01 +00:00
Bo Anderson
d330e915d1
download_strategy: add comment about Content-Disposition handling
2021-03-01 13:59:05 +00:00
Mike McQuaid
9663567501
Fix brew style.
2021-03-01 13:43:47 +00:00
Bo Anderson
388a66383b
download_strategy: only take basename of Content-Disposition
2021-02-27 17:54:18 +00:00
Bo Anderson
03e59f4ec8
download_strategy: don't chdir unless a block is passed
2021-02-24 01:13:10 +00:00
Bo Anderson
85eb346fb7
download_strategy: fix nounzip strategy ignoring block
2021-02-22 13:48:19 +00:00
Nanda H Krishna
b9cbeb3019
Merge pull request #10608 from nandahkrishna/assignment-condition-parentheses
...
style: use parentheses for assignment in conditions
2021-02-15 18:43:54 +05:30
Rylan Polster
1cc983f00d
download_strategy: pass chdir block to stage
2021-02-12 14:50:50 -05:00
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions
2021-02-12 18:33:37 +05:30
Seeker
b9854bd4cf
rubocops: add unless_multiple_conditions
2021-01-08 10:33:54 -08:00
Markus Reiter
b57a448f2a
Add bump-unversioned-casks
command.
2020-12-07 23:03:47 +01:00
Dario Vladovic
1f103f88d0
livecheck: enable git strategy for sourcehut
2020-11-26 09:30:54 -05:00
Markus Reiter
1b732ec7b2
Fix RuboCop offenses.
2020-11-16 02:05:29 +01:00
Rylan Polster
50890ebd51
fix Lint/DuplicateBranch style
2020-11-16 02:02:52 +01:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Jonathan Chang
ab7b757400
rubocop: fix Style/NegatedIfElseCondition
2020-11-10 23:28:31 +11:00