Commit 0764a5c
authored
Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ (#4363)
* Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+
Homebrew 5.2.0 made untrusted-tap enforcement the default. After
'brew update' pulls in the new version, 'brew install mssql-tools18'
is refused because the microsoft/mssql-release tap is untrusted.
This caused sqlcmd to never be installed (exit code 127), so the
SQL Server connectivity check looped for 72 attempts and failed.
Add 'brew trust microsoft/mssql-release' after tapping and before
'brew update' to explicitly trust the Microsoft tap.
* Address PR #4363 review feedback
- Move 'brew trust' after 'brew update' so it works even when the
runner image starts with a Homebrew version older than 5.2.
- Add a fail-fast check after 'brew install mssql-tools18' to
immediately abort with a clear error if sqlcmd is not on PATH,
avoiding the 6-minute timeout loop.1 parent ef60122 commit 0764a5c
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
0 commit comments