You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
release-tools: macOS legs fail with flags[@]: unbound variable (part of #4862) #14370
line 22: flags[@]: unbound variable
##[error]Process completed with exit code 1.
Where
.github/workflows/release-tools.yml: flags=() at :50, :336, :459, then "${flags[@]}" at :63-67, :88, :350-353, :373 and in the hackage step. macOS runners run bash 3.2, where expanding an empty array under set -u is an error. Linux sets the array, so only macOS fails.
Fix
Expand with ${flags[@]+"${flags[@]}"} (or give the macOS case a non-empty value) in every use in release-tools.yml, and check other workflows that run set -u with possibly empty arrays on macOS. Proof: the macOS legs of a release.yml dry run pass.
Activity
release: keep 0.0.0 until the dry run is green (part of #4862)
release: keep 0.0.0 until the dry run is green (part of #4862)
release: find draft releases by listing, contents: write for attest a…