mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: ignore commit metadata check in release script (#16495)
The `scripts/release/check_commit_metadata.sh` check was too strict for our new cherry-picking process. This turns the error into a warning log.
This commit is contained in:
@@ -143,7 +143,12 @@ main() {
|
||||
for commit in "${renamed_cherry_pick_commits_pending[@]}"; do
|
||||
log "Checking if pending commit ${commit} has a corresponding cherry-pick..."
|
||||
if [[ ! -v renamed_cherry_pick_commits[${commit}] ]]; then
|
||||
error "Invariant failed, cherry-picked commit ${commit} has no corresponding original commit"
|
||||
if [[ ${CODER_IGNORE_MISSING_COMMIT_METADATA:-0} == 1 ]]; then
|
||||
log "WARNING: Missing original commit for cherry-picked commit ${commit}, but continuing due to CODER_IGNORE_MISSING_COMMIT_METADATA being set."
|
||||
continue
|
||||
else
|
||||
error "Invariant failed, cherry-picked commit ${commit} has no corresponding original commit"
|
||||
fi
|
||||
fi
|
||||
log "Found matching cherry-pick commit ${commit} -> ${renamed_cherry_pick_commits[${commit}]}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user