Mike McQuaid
d70ebaea3d
Merge pull request #15409 from TheMDev/master
...
Download Strategy Dependency Missing Case
2023-05-18 13:09:57 +01:00
Kevin
946478aed4
Merge pull request #15396 from apainintheneck/custom-service-name
...
Custom service name
2023-05-17 22:09:31 -07:00
apainintheneck
f2adbf6613
service: change custom name DSL
...
After some discussion, we decided to change the DSL to get rid of
the `plist_name` and `service_name` methods which aren't meaningful
for most users.
The new DSL looks like this:
```rb
service do
name macos: "name", linux: "name"
end
```
I also updated some specs here to reflect these changes.
There was some talk about maybe deprecating `plist_name` and `service_name`
but I think that's outside of the scope of this PR so I'm leaving
them as is for now. One benefit of this is that everything here is backwards
compatible.
2023-05-17 21:54:32 -07:00
Michael Wagner
78c07fd0e1
Fix Missing Download Strategy And Dependency
2023-05-17 16:30:00 -05:00
Robin Ury
dddec94fd7
Change: --skip-installed to --missing
2023-05-17 14:57:26 -05:00
Robin Ury
9b884942d7
Change: skip-installed description for clarity
2023-05-17 13:59:38 -05:00
Robin Ury
db84725c7b
Fix: strict args exception for uses
2023-05-17 13:53:19 -05:00
Robin Ury
6aa9a0e57b
Add brew deps --skip-installed
arg
2023-05-17 13:53:19 -05:00
Carlo Cabrera
4c0912d95c
utils/github/artifacts: minor improvements
2023-05-17 23:54:45 +08:00
Carlo Cabrera
d7870bb24d
Move artifact download code to separate file
...
This will help avoid mutually-recursive `require`s.
2023-05-17 23:48:58 +08:00
Markus Reiter
a97e63efbf
Fix tests on generic OS.
2023-05-17 15:26:46 +02:00
Markus Reiter
486c3765ce
Add --os=all
and --arch=all
options.
2023-05-17 15:26:46 +02:00
Carlo Cabrera
43b6d79a4c
cleanup: handle GitHub Actions artifacts
...
Implemented based on feedback from #15440 .
2023-05-17 21:11:16 +08:00
Carlo Cabrera
9260bd97e8
GitHubArtifactDownloadStrategy: fix initialize
signature
2023-05-17 21:11:16 +08:00
Carlo Cabrera
ee6ef00a73
GitHubArtifactDownloadStrategy: set cache properly
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-05-17 21:11:16 +08:00
Carlo Cabrera
d372eb86ca
utils/github: remove unnecessary chdir
call
...
The only existing caller already has the requested directory as the
workign directory, so this is currently not needed.
2023-05-17 21:11:15 +08:00
Carlo Cabrera
05337cbb79
Refactor GitHub artifact downloads out of dev-cmd/pr-pull
...
I plan to use these in `test-bot` to download built bottles from
previous CI runs.
2023-05-17 21:11:15 +08:00
Mike McQuaid
f7b3225574
Merge pull request #15447 from carlocab/all-github-vars
...
bin/brew: add all `GITHUB_*` vars to env allowlist
2023-05-17 13:06:40 +01:00
Carlo Cabrera
b65f08700d
bin/brew: add all GITHUB_*
vars to env allowlist
...
See #15441 .
2023-05-17 19:53:46 +08:00
Mike McQuaid
13d716b08c
Merge pull request #15442 from Homebrew/dependabot/github_actions/codecov/codecov-action-3.1.4
...
Bump codecov/codecov-action from 3.1.3 to 3.1.4
2023-05-17 12:33:08 +01:00
Mike McQuaid
81c56a5e53
Merge pull request #15444 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2023-05-17 12:32:55 +01:00
Sean Molenaar
49b4a7928e
Merge pull request #15260 from SMillerDev/feature/livecheck/github_release_strategy
...
feat: add github_release strategy
2023-05-17 11:09:57 +02:00
BrewTestBot
df335e36f5
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2023-05-17 00:26:39 +00:00
Markus Reiter
6f7f8eaf81
Merge pull request #15441 from carlocab/env-allow-more-github
...
brew/brew: add `GITHUB_EVENT_PATH` to env allowlist
2023-05-16 22:49:37 +02:00
Sam Ford
9b6e8f8dc5
Update brew livecheck documentation
2023-05-16 16:08:20 -04:00
Sam Ford
104d30d231
Finish renaming GithubRelease to GithubReleases
2023-05-16 16:08:18 -04:00
dependabot[bot]
e41a47e730
Bump codecov/codecov-action from 3.1.3 to 3.1.4
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](894ff025c7...eaaf4bedf3
)
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 18:56:46 +00:00
Sean Molenaar
940b63cad3
chore: rename GitHubRelease to GitHubReleases
2023-05-16 14:19:01 -04:00
Sam Ford
bed4737826
GithubRelease: Add tests
...
This adds tests to cover all of the strategy outside of the
`#find_versions` method, which we don't currently test because it
involves a network request.
2023-05-16 14:19:00 -04:00
Sam Ford
a2fb2b00fd
GithubRelease: Simplify block handling
...
The `#versions_from_content` method requires a regex and this will be
enforced by the type signature, so we don't have to check for the
presence of a regex when handling a `strategy` block.
2023-05-16 14:18:23 -04:00
Sam Ford
263f486806
GithubRelease: Add #generate_input_values method
...
Keeping the logic for generating the API URL in a method makes it
testable, aligns with other strategies, and will help to enable some
future work.
2023-05-16 14:18:23 -04:00
Sam Ford
701f7c5051
GithubRelease: Update type signature
2023-05-16 14:18:23 -04:00
Sam Ford
8a0f63e728
GithubRelease: Omit unnecessary prefix
2023-05-16 14:18:22 -04:00
Sam Ford
a29b5c34d2
GithubRelease: Rework documentation comments
...
The initial documentation comments contained some remaining text
referring to `GithubLatest` and hadn't been updated to incorporate
the recent changes to the aforementioned strategy. This also reworks
some of the language to better explain the strategy's function,
application, etc.
2023-05-16 14:18:22 -04:00
Sam Ford
1dd7556c74
GithubLatest: Tweak documentation comments
2023-05-16 14:18:22 -04:00
Sam Ford
db7a6baa33
GithubLatest: Fix test for GithubRelease changes
...
`GithubLatest` was updated to use parts of `GithubRelease` and this
works fine within `brew livecheck` (since we `require` all the
strategies) but we need to explicitly `require` `GithubRelease` in
the `GithubLatest` test file now. Without this, we encounter errors
in parts of `GithubLatest` where `GithubRelease` is referenced.
2023-05-16 14:18:22 -04:00
Sean Molenaar
5139b9b468
feat: add github_release strategy
2023-05-16 14:18:22 -04:00
Carlo Cabrera
111f504925
Merge pull request #15439 from Homebrew/sponsors-maintainers-man-completions
...
Update manpage and completions.
2023-05-17 01:44:36 +08:00
Carlo Cabrera
da0cd37bd4
brew/brew: add GITHUB_EVENT_PATH
to env allowlist
...
Needed for Homebrew/homebrew-test-bot#922 .
2023-05-17 01:41:58 +08:00
BrewTestBot
b27548dd97
Update manpage and completions.
...
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml ) workflow.
2023-05-16 16:33:15 +00:00
Mike McQuaid
cb143b14d0
Merge pull request #15421 from apainintheneck/add-dry-run-for-generate-api-cmds
...
dev-cmd/generate-*-api: add dry run option
2023-05-16 17:32:31 +01:00
Mike McQuaid
59c4bb45e5
Merge pull request #15437 from samford/livecheck/update-curl_headers-args
...
Strategy: Pass --max-redirs to #curl_headers
2023-05-16 17:31:57 +01:00
Mike McQuaid
83ab385281
Merge pull request #15422 from apainintheneck/update-service-documentation
...
formula-cookbook: update service docs
2023-05-16 17:24:13 +01:00
Markus Reiter
7c3077f3e9
Merge pull request #15438 from reitermarkus/bundle-version
...
Fix `BundleVersion` comparison.
2023-05-16 17:50:52 +02:00
Eric Knibbe
b6a2f5a9a0
Merge pull request #15433 from Moulick/patch-1
...
Fix 1Password logo in README.md
2023-05-16 11:00:10 -04:00
Moulick Aggarwal
8277ce2988
Fix 1password logo in README.md
...
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-05-16 15:55:27 +02:00
Markus Reiter
a7cc9a8b41
Fix BundleVersion
comparison.
2023-05-16 14:23:15 +02:00
Markus Reiter
53de9f38a2
Merge pull request #15430 from reitermarkus/cask-inspect
...
Simplify `Cask#inspect`.
2023-05-16 11:08:01 +02:00
Markus Reiter
34dd47d7d4
Merge pull request #15434 from reitermarkus/formula-loaded-from-api
...
Add `Formula#loaded_from_api?`.
2023-05-16 11:07:06 +02:00
Markus Reiter
fab2f20451
Merge pull request #15432 from reitermarkus/upgrade-bug-message
...
Don't special-case message for outdated casks that aren't installed.
2023-05-16 10:57:45 +02:00