Mike McQuaid
41e94afda5
Fix brew style
...
Fixes for https://github.com/Homebrew/brew/pull/12152 .
Extracted into a separate PR so this can be merged immediately.
2021-09-30 10:13:53 +01:00
XuehaiPan
8edc69e205
utils/shfmt.sh: enable coloring only when brewed diffutils
is installed
2021-09-28 00:21:21 +08:00
Bo Anderson
eb360dbbb0
utils/bottle: fix local JSON handling for bottle rebuilds
2021-09-27 03:44:33 +01:00
Bo Anderson
b55498269f
Revamp APIs around bottle specifications
2021-09-20 15:02:05 +01:00
XuehaiPan
065c5b79fe
utils/shfmt.sh: refactor function align_multiline_if_condition
2021-09-16 23:32:53 +08:00
XuehaiPan
d559d3ff46
utils/shfmt.sh: reuse similar code fragments
2021-09-16 23:16:07 +08:00
XuehaiPan
c2d5d84b21
Merge remote-tracking branch 'upstream/master' into fix-inconsistent-shell-style
2021-09-16 01:01:49 +08:00
XuehaiPan
09a16bcea1
utils/shfmt.sh: implement checkers for forbidden styles
2021-09-16 00:53:53 +08:00
XuehaiPan
1bb68bda3f
utils/shfmt.sh: add function wrap_then_do
2021-09-16 00:07:57 +08:00
XuehaiPan
a839d7e5ff
utils/shfmt.sh: add function prototypes
2021-09-15 22:12:03 +08:00
XuehaiPan
9efde249c1
style: add shfmt implementation
2021-09-15 22:12:01 +08:00
XuehaiPan
3f96d963f7
style: fix inconsistent code style for shell scripts
2021-09-15 14:59:01 +08:00
XuehaiPan
d77d510ce9
brew.sh: alias which
as type -P
2021-09-15 02:18:27 +08:00
Mike McQuaid
1a904af264
Merge pull request #12018 from FnControlOption/upgrade-tsort
...
upgrade: use topological sort to upgrade formulae
2021-09-12 19:26:22 +01:00
XuehaiPan
5c6d2b154f
utils/ruby.sh: remove dependency for which
command
2021-09-11 15:02:04 +08:00
fn ⌃ ⌥
0c3e49092c
upgrade: use topological sort to upgrade formulae
2021-09-09 13:41:50 -07:00
Sam Ford
f88966a8a5
Use curl options where appropriate
2021-09-07 14:13:19 -04:00
Sam Ford
d44979fa67
Curl#curl_args: Fix and refactor options
2021-09-07 14:13:17 -04:00
Mike McQuaid
8bac9850f6
Merge pull request #11920 from cho-m/gitlab-released-at-keep-time
...
audit: gitlab prerelease check keep time/zone
2021-09-07 10:34:34 +01:00
Mike McQuaid
7c37a34cca
Merge pull request #11927 from FnControlOption/fetch
...
fetch: fix `--bottle-tag` when unbottled on host system
2021-09-01 16:08:05 +01:00
FnControlOption
7d0a36752b
curl: echo any cookies received on a redirect
2021-09-01 06:32:30 -07:00
FnControlOption
b9fc4e36f0
fetch: fix --bottle-tag when unbottled on host system
2021-08-26 14:44:53 -07:00
Michael Cho
3d2d7c93e7
audit: gitlab prerelease check keep time/zone
2021-08-24 20:10:01 -07: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
Rylan Polster
9b2a504207
Fix API fetch methods in Utils::Analytics
2021-08-09 18:39:49 -04:00
Rylan Polster
737dd1654b
Refactor API methods
2021-08-06 04:31:27 -04:00
Logicer
7beb1f227c
Update Library/Homebrew/utils/github/api.rb
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-20 12:06:04 +10:00
Logicer
ed4f840a67
Fix style
2021-07-20 09:22:34 +10:00
Logicer
0c6f5ab233
Put API.credentials
bit into separate variable
2021-07-20 09:18:16 +10:00
Logicer
71b61d28d1
Fix Style
2021-07-19 12:09:23 +10:00
Logicer
06f415e819
Dont ask to create PAT if one already exists
2021-07-19 10:28:11 +10:00
Logicer
5b7921ff68
Add support for GitHub Oauth tokens from keychain
2021-07-18 21:47:11 +10:00
Nanda H Krishna
5ccfbcd1d2
Autocorrect style issues with brew style --fix
2021-07-08 12:36:39 +05:30
Mike McQuaid
1680ddb267
utils/repology: temporarily disable functionality.
...
Doesn't work with system `curl` currently.
2021-06-30 09:20:56 +01:00
Maxim Belkin
370ef0ac1e
Fix Homebrew style issue
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-22 09:22:36 -05:00
Maxim Belkin
e967fffdfb
Apply Mike's suggestions
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-22 09:16:08 -05:00
Maxim Belkin
b29ec8cf65
utils/github.rb: fix dry-run message
2021-06-21 13:37:49 -05:00
Maxim Belkin
514271010a
Merge pull request #11556
...
github.rb: correct one dry-run message
2021-06-18 16:02:22 -05:00
Mike McQuaid
72c59c816f
Merge pull request #11548 from MikeMcQuaid/3_2_deprecate_disable_remove
...
Deprecate, disable, delete code for Homebrew 3.2.0
2021-06-18 14:34:10 +01:00
Misty De Meo
c0a02442d9
Revert "language/java: use shortened brew paths"
...
This reverts commits 318175cfe2b23328f1b5f13812fd59cfd45fe1dc,
e7ab760392b9691a6c730b7e0d660b7874969e70 and
3b35af63f608438b1882756feca94a6ebdd0d6a3 (PR #11537 ).
2021-06-17 20:29:43 -07:00
Maxim Belkin
d533017d38
github.rb: correct one dry-run message
2021-06-17 19:32:10 +00:00
Mike McQuaid
30a65342e8
Deprecate, disable, delete code for Homebrew 3.2.0
...
Do the usual deprecation, disable, delete dance for Homebrew 3.2.0.
2021-06-17 11:34:32 +01:00
Caleb Xu
318175cfe2
Utils: add shortened_brew_path
2021-06-15 09:58:46 -04:00
Bo Anderson
a06d136d2c
Move Sorbet gems into an optional group
2021-06-11 08:10:30 +01:00
Mike McQuaid
c4d69dd2e9
Revert "fix(vendor-gems): redirect bundler stdout to stderr"
2021-06-07 14:51:07 +01:00
Gibson Fahnestock
07d571bebc
fix(vendor-gems): redirect bundler stdout to stderr
...
When running brew commands and interpreting the output, e.g. running
`brew livecheck --json`, it's necessary to stop other programs Homebrew
happens to execute from writing logging output to stdout. Most programs
don't do this, but `bundle install` does seem to.
To reproduce the issue you can run:
```shell
git -C "$(brew --prefix)" clean -ffdx Library/Homebrew/vendor
stdout=$(HOMEBREW_FORCE_VENDOR_RUBY=1 brew livecheck --newer-only --json --cask $(brew --repo homebrew/cask)/Casks/grid.rb)
echo "^^^ was stderr, >>> is stdout: $stdout"
```
If you run it without this change it will print a bunch of output like
this to the stdout before printing out the livecheck JSON output:
```text
Using bundler 1.17.3
Fetching byebug 11.1.3
Fetching coderay 1.1.3
Installing byebug 11.1.3 with native extensions
Installing coderay 1.1.3
Fetching colorize 0.8.1
Installing colorize 0.8.1
[
# Contents of the JSON block.
]
```
With this change the stdout from `bundle install` will be redirected to
brew's stderr, meaning only the JSON goes to stdout, and the rest goes
to stderr.
2021-06-03 11:18:23 +01:00
Mike McQuaid
aa937b9024
Merge pull request #11474 from cho-m/fix-tar-validation
...
utils/tar: fix validation for tar without directory or extensions
2021-06-02 14:06:17 +01:00
hyuraku
90c02f7b5a
change https://api.github.com to API_URL
2021-06-02 21:13:53 +09:00
Michael Cho
9e29c6eac2
utils/tar: fix validation for tar without directory or extensions
2021-06-01 12:53:25 -07:00
Rylan Polster
9f5afcbf63
Merge pull request #11381 from cnnrmnn/fix-range-requests
...
Fix range requests with `curl`
2021-05-15 16:40:20 -04:00