fix: use YAML folded scalar for wget command to fix parse error #236
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-api!236
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "226-fix-yaml-syntax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
wgetcommand across multiple lines--header="Authorization: token ..."continuation line contains a colon that YAML interprets as a mapping separator, causing aScannerErrorat line 94>-folded block scalar so YAML joins continuation lines into a single stringChanges
.woodpecker.yaml: Replaced bare multi-line wget command with>-folded block scalar to avoid colon-as-mapping ambiguityTest Plan
python3 -c "import yaml; yaml.safe_load(open('.woodpecker.yaml')); print('OK')"passesReview Checklist
Related Notes
pal-e-api-- the project this work belongs toQA Review
Diff Analysis
>-folded block scalar correctly joins continuation lines into a single command string with space separators-in>-), which is correct for a shell commandDomain Quality
wget -O /tmp/update-kustomize-tag.sh --header="Authorization: token ${FORGEJO_TOKEN}" "http://..."SOP Compliance
Closes #226present for auto-closeNits
None.
VERDICT: APPROVE