Caleb Xu
e0915a2c34
dev-cmd/bottle: use Utils::Gzip.compress_with_options
2023-01-06 23:04:03 -05:00
Rylan Polster
68bbe03d04
Remove remaining formula_api_path
references
2023-01-06 02:46:21 -05:00
Mike McQuaid
37be5bea52
dev-cmd/edit: handle editing with install_from_api
.
...
Before this change, this would fail every time, even when available on
disk (which was not the case for formulae).
With this change, it will attempt to find it from a tap on disk and only
fail if it cannot be found in any.
2023-01-04 13:51:21 +00:00
Mike McQuaid
585d10fdc8
Merge pull request #14313 from apainintheneck/fix-brew-prof
...
cmd/prof: Fix gem errors
2023-01-02 19:14:03 +00:00
apainintheneck
3a35ea3e28
Set ruby-prof to v1.4.3
...
This is the last version of this gem that supports
Ruby 2.6.x. We can stop passing the explicit version
when we move to a newer version of Ruby.
2022-12-29 12:48:13 -08:00
Carlo Cabrera
819aa09e63
Merge pull request #14296 from chenrui333/fix-audit-for-bump-formula-pr-cmd
2022-12-29 16:14:44 +08:00
Rui Chen
c9274ea34f
audit: use full_name
for cask audit
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-12-28 16:29:33 -05:00
Rui Chen
59cff340ca
use formula.full_name
rather than formula.name
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-12-28 11:08:43 -05:00
Rui Chen
c2a3bffbcd
audit: use formula.name
rather than formula.path
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-12-27 17:29:52 -05:00
apainintheneck
2cbe89102e
Comment out path args deprecation
2022-12-27 14:09:31 -08:00
apainintheneck
c2e8bf3e83
Deprecate path args to audit cmd
...
`brew audit` doesn't work as expected when users
pass in formula/cask paths so we are deprecating it.
2022-12-22 10:00:42 -08:00
Mike McQuaid
77c0d38c35
brew style --fix
2022-12-13 11:37:06 +00:00
Mike McQuaid
4a0e16fbd9
dev-cmd/bottle: use gnu-tar
's --mtime
.
...
This allows us to remove all the manual timestamp fiddling and lets
`gnu-tar` handle it for us instead (as-per the most recent
recommendations on https://reproducible-builds.org/docs/archives/ ).
2022-12-12 16:47:56 +00:00
Eric Knibbe
4fe0d085bc
Merge pull request #14218 from EricFromCanada/create-prompt-name
...
dev-cmd/create: also prompt for name when run with `--cask`
2022-12-06 19:06:05 -05:00
Dawid Dziurla
a4d2aa8fa0
Merge pull request #14210 from dawidd6/bump-check-is-a-version
...
dev-cmd/bump: check if Repology output is a version first
2022-12-06 21:24:56 +01:00
EricFromCanada
8f445de261
dev-cmd/create: also prompt for name with --cask
2022-12-06 13:04:51 -05:00
Bevan Kay
74092bc40d
Update Library/Homebrew/dev-cmd/audit.rb
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-12-06 20:50:00 +11:00
Bevan Kay
839746cf99
dev-cmd/audit: enable --[no]-signing flag for audits
2022-12-06 11:00:59 +11:00
Dawid Dziurla
33f5c41cd2
dev-cmd/bump: check if Repology output is a version first
2022-12-05 16:20:35 +01:00
Dawid Dziurla
b8a505d0d8
Merge pull request #14190 from dawidd6/bump-favor-livecheckable
...
dev-cmd/bump: don't use Repology version if livecheckable
2022-12-05 16:00:56 +01:00
Dawid Dziurla
84795bdd02
dev-cmd/bump: don't use Repology version if livecheckable
2022-11-30 10:14:26 +01:00
apainintheneck
00990e34a7
Merge branch 'master' into create-cop-for-os-checks
2022-11-29 23:14:15 -08:00
apainintheneck
c477b9aab3
Cleanup after adding os specific rubocop
...
- Change name of rubocop warning
- Disable linting on remaining offending lines
- Add todos to move lines with disabled linting
checks to extend/os in the future
2022-11-29 23:13:50 -08:00
Issy Long
c37601f585
dev-cmd/bump-{cask,formula}-pr: args.message
is before the default
...
- I was wondering why `brew bump` PRs have descriptions with both commands, like:
```
Created with `brew bump`.
---
Created by `brew bump-formula-pr`.
```
- Then I read the code and realised that "append" was the wrong word for the
`--message` arg description.
2022-11-19 23:03:23 +00:00
Mike McQuaid
efa04015a1
Merge pull request #14149 from danielbayley/dev-cmd-ruby
...
dev-cmd/`ruby`: add `--version`
2022-11-16 13:39:49 +00:00
Daniel Bayley
4bf2b3df4a
dev-cmd/ruby
: add --version
2022-11-16 13:09:31 +00:00
Bo Anderson
bca9eb05d1
dev-cmd/unbottled: simulate target tag
2022-11-16 00:07:31 +00:00
Mike McQuaid
59f4b5226a
tests: test on Ubuntu 18.04.
2022-11-09 14:45:43 +00:00
hyuraku
561602fa51
use Manpages method on dev-cmd/update_maintainers
2022-11-08 20:36:10 +09:00
hyuraku
d89344b41d
add manpage.rb to generating homebrew manual
2022-11-08 20:33:30 +09:00
Bo Anderson
a54b7a8c15
dev-cmd/prof: use HOMEBREW_RUBY_EXEC_ARGS
2022-11-05 04:18:13 +00:00
Bo Anderson
7d7083d0f3
Universally apply Ruby disable options
2022-11-05 01:58:12 +00:00
Bo Anderson
5fb368d9b8
dev-cmd/bottle: add --no-all-checks
2022-11-04 18:46:43 +00:00
Mike McQuaid
2961132e01
tests: fix under GitHub Codespaces.
2022-11-03 16:33:04 +00:00
Mike McQuaid
30f069f60a
Merge pull request #14045 from Bo98/bump-formula-pr-version
...
dev-cmd/bump-formula-pr: allow --version for version formatting changes
2022-10-26 12:12:27 +01:00
Bo Anderson
b500aee799
dev-cmd/bump-formula-pr: allow --version for version formatting changes
2022-10-25 15:46:27 +01:00
Bo Anderson
e47988a12b
dev-cmd/unbottled: fix --dependents erroring
2022-10-25 15:44:29 +01:00
Bo Anderson
eac32f0b20
Additional fixes for Ruby 3 compatibility
2022-10-18 01:54:59 +01:00
EricFromCanada
504bdd2816
bump-cask-pr: handle additional use cases
2022-10-14 11:19:49 -04:00
Bo Anderson
6858e215dd
dev-cmd/vendor-gems: add --no-commit
switch
2022-10-14 01:30:37 +01:00
Bo Anderson
c87c97e4d7
utils/gems: install Bundler into vendor directory
2022-10-14 01:30:34 +01:00
Issy Long
250f1882c8
dev-cmd/typecheck: Reinstate srb rbi hidden-definitions
...
- Turns out we do need this. I lulled us into a false sense of security
by not deleting `sorbet/rbi/hidden-defintions/hidden.rbi` previously.
- If we do delete that file then Sorbet reveals >200 typechecking
issues.
- The docs on moving from `srb rbi` to `tapioca` say that we don't need
`hidden-definitions` anymore, but clearly we do. The blog post goes
into a lot of detail on why `rbi hidden-defintions` exists and the
fact that there's not an analogous command in Tapioca:
https://sorbet.org/blog/2022/07/27/srb-tapioca#whats-happening-with-srb-rbi-hidden-definitions
- Eventually we should try out `tapioca dsl`, since that's said to be a
"partial replacement" for `hidden-definitions`, and removing our
reliance on deprecated commands can only be a good thing?
2022-10-11 09:58:44 +01:00
Issy Long
b7d997e80d
sorbet: Bump some files from typed: false
to typed: true
...
- This was done with `brew typecheck --update --suggest-typed` which
(as of the previous commit) uses Spoom, yet another gem. I thought I'd
see how well it works. There are no Sorbet errors after these changes!
2022-10-11 01:09:03 +01:00
Issy Long
295d60b3a2
Gemfile*,dev-cmd/typecheck: Use Spoom for --suggest-typed
...
- Spoom is the gem that's recommended for automatically changing `typed`
sigils in files now. It was recommended in the "migrate to Tapioca"
guide at
https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca#things-that-do-not-need-to-happen .
2022-10-11 01:09:02 +01:00
Issy Long
bca4fa3472
dev-cmd/typecheck: Use Tapioca more as srb rbi
is in maintenance
...
- According to https://sorbet.org/blog/2022/07/27/srb-tapioca , Tapioca
is the recommended way to generate RBIs for Sorbet these days and `srb
rbi` is in maintenance mode.
- There's a handy migration document -
https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca - and
we're some of the way there already given we currently use Tapioca in
some places.
2022-10-11 00:56:48 +01:00
Nanda H Krishna
639e8eb237
Merge pull request #13613 from mohammadzainabbas/mohammad
...
Augment `brew livecheck` with a `--resources` option to check resources
2022-10-02 13:31:17 -04:00
apainintheneck
ad75619554
Remove unused function from bump-cask-pr
2022-09-27 21:20:05 -07:00
Mohammad Zain Abbas
9755b00fdc
Merge branch 'Homebrew:master' into mohammad
2022-09-27 14:24:10 +02:00
Mike McQuaid
4aa765fafe
Cleanup and fix CI jobs
...
- use macOS 12 or Ubuntu 22.04 wherever appropriate
- don't append `(Linux)` to job names
- use specific Ubuntu 22.04 and Ubuntu 18.04 jobs
We may want to consider more Ubuntu 18.04 jobs in future, too.
2022-09-27 10:30:08 +01:00
Mohammad Zain Abbas
a81ef89883
Merge branch 'Homebrew:master' into mohammad
2022-09-26 19:40:54 +02:00