Skip to content

YAML folded multiline strings interpreted as multiple commands #26105

Answered by chrispat
DaanDeMeyer asked this question in Actions
Discussion options

You must be logged in to vote

@daandemeyer could you try formatting your command like this and see if you still see the issue

- run: >-
    cmake
    -B build
    -S .
    -G Ninja
    -DCMAKE_BUILD_TYPE=Debug
    -DBUILD_SHARED_LIBS=ON
    -DREPROC++=ON
    -DREPROC_TEST=ON
    -DREPROC_EXAMPLES=ON
    -DREPROC_WARNINGS_AS_ERRORS=ON
    -DREPROC_TIDY=ON
    -DREPROC_SANITIZERS=ON

I think the extra level of indent is informing the YAML parser to add additional new line characters.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants