-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiline string gets turned into long line #240
Comments
Hi @ggoretkin-bdai thanks for taking the time to open an issue. Maybe I'm understanding you wrong but the snippet you provided is not a valid yaml way to break long lines. You need to use the ---
jobs:
run_jobs:
steps:
- name: Upload coverage to Codecov
with:
files: >
./projects/aaaaaaaaaaaaaaaaa/ws/build/formation_planner/coverage.xml,
./projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./projects/bbbb_examples/ws/build/bbbb_examples/coverage.xml,
./projects/ccccccccccccccccccc/ws/build/diagnose_repair/coverage.xml,
projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./ws/build/abcd_abc/coverage.xml, ./ws/build/bbbb_bbbbter/coverage.xml,
./ws/build/abcd_abc_wrappers/coverage.xml In case you're not familiar with these operators here is a little cheatsheet Break long lines
|
Thanks for the quick reply, and the explanation. I believe there is still something going on that I could use help understanding. The exact situation I am running into is: jobs:
run_jobs:
steps:
- name: Upload coverage to Codecov
with:
files: ./projects/aaaaaaaaaaaaaaaaa/ws/build/formation_planner/coverage.xml, ./projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml, ./projects/bbbb_examples/ws/build/bbbb_examples/coverage.xml, ./projects/ccccccccccccccccccc/ws/build/diagnose_repair/coverage.xml, projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml, ./ws/build/abcd_abc/coverage.xml, ./ws/build/bbbb_bbbbter/coverage.xml, ./ws/build/abcd_abc_wrappers/coverage.xml Note that it is a single long line at the end. ---
jobs:
run_jobs:
steps:
- name: Upload coverage to Codecov
with:
files: ./projects/aaaaaaaaaaaaaaaaa/ws/build/formation_planner/coverage.xml,
./projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./projects/bbbb_examples/ws/build/bbbb_examples/coverage.xml, ./projects/ccccccccccccccccccc/ws/build/diagnose_repair/coverage.xml,
projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./ws/build/abcd_abc/coverage.xml, ./ws/build/bbbb_bbbbter/coverage.xml,
./ws/build/abcd_abc_wrappers/coverage.xml From that I inferred some things about YAML that were not true (thank you for pointing out the |
Furthermore, when I give this to ---
jobs:
run_jobs:
steps:
- name: Upload coverage to Codecov
with:
files: >
./projects/aaaaaaaaaaaaaaaaa/ws/build/formation_planner/coverage.xml,
./projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./projects/bbbb_examples/ws/build/bbbb_examples/coverage.xml, ./projects/ccccccccccccccccccc/ws/build/diagnose_repair/coverage.xml,
projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./ws/build/abcd_abc/coverage.xml, ./ws/build/bbbb_bbbbter/coverage.xml,
./ws/build/abcd_abc_wrappers/coverage.xml it becomes ---
jobs:
run_jobs:
steps:
- name: Upload coverage to Codecov
with:
files: >-
./projects/aaaaaaaaaaaaaaaaa/ws/build/formation_planner/coverage.xml,
./projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./projects/bbbb_examples/ws/build/bbbb_examples/coverage.xml, ./projects/ccccccccccccccccccc/ws/build/diagnose_repair/coverage.xml,
projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml,
./ws/build/abcd_abc/coverage.xml, ./ws/build/bbbb_bbbbter/coverage.xml,
./ws/build/abcd_abc_wrappers/coverage.xml
|
The I can reproduce the long line not being handled. It seems that the string |
Apparently it's a bug in the |
@lyz-code How can I avoid formatting list items? For example: build:
stage: build
before_script:
- *docker_login
script:
- DOCKER_BUILDKIT=1 docker build .
--cache-from $CI_REGISTRY_IMAGE:latest
--platform=linux/amd64
--network=host
--progress=plain
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA Transformed into: build:
stage: build
before_script:
- *docker_login
script:
- DOCKER_BUILDKIT=1 docker build . --cache-from $CI_REGISTRY_IMAGE:latest --platform=linux/amd64 --network=host --progress=plain
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA Thank you! |
Description and Current Behavior
yamlfix
turnsinto
Desired behavior
breakable lines should not exceed the default column width
Environment
The text was updated successfully, but these errors were encountered: