fix(ci): use Nu list spread instead of backslash continuations in extract step #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/workflow-nu-line-continuation"
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
The
Extract binary from buildstep in.forgejo/workflows/build-oci-image.ymlinvoked^docker buildx buildwith bash-style backslash + newline line continuations. Nushell does not interpret trailing\as a line continuation, so the parser saw the next line as a fresh statement and bailed withnu::parser::parse_mismatch: expected operatorat--target export.Rebuild the step using the same Nu-list spread pattern the adjacent
Build and pushstep already uses: collect the three--build-argflags into a list, then call^docker buildx build --target export --output ... ...$build_args -f oci-build/Dockerfile .on a single logical line.Docs reference: Nushell pipeline / continuation rules: https://www.nushell.sh/book/pipelines.html. (There is no
\-style continuation; Nu continues lines implicitly inside list/record/parenthesis literals.)Test plan
nuparses the new list locally with dummy env vars set; output is the expected six-element list..forgejo/workflows/build-oci-image.yml; theExtract binary from buildstep now reachesdocker buildx buildand produces./output/youtrack-cli.