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
Docker references in gitlab-ci.yml split on multiple lines is not updated correctly #11595
Comments
Hi there, Help us by making a minimal reproduction repository. Before we can start work on your issue we first need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction to understand what is needed. We may close the issue if you (or someone else) have not provided a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
I've created a reproducer repo: https://github.com/kiwicom/renovate-11595 |
This looks pretty weird, is this supported by gitlab / yaml ? |
Gitlab just parses yaml. Splitting a string to multiple lines is a standard feature of yaml:
Some examples are also at https://yaml-multiline.info/ So in services:
- name: "alpine:3.12.8@\
sha256:a296b4c6f6ee2b88f095b61e95c7ef4f51ba25598835b4978c9256d8c8ace48a" the value for We had the image reference split to multiple lines because of the line length. Obviously we worked around the issue by putting the image reference entirely on a single line. However, I wonder how renovate updates the yaml file as it had not replaced whole value for |
Ok, this will be very tricky to fix.
I've an idea and will experiment a little. |
How are you running Renovate?
Self-hosted
Please select which platform you are using if self-hosting.
GitLab self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
26.19.1
Describe the bug
When the Docker image reference in gitlab-ci.yml file is split into multiple lines in yaml file, renovate does
not update the whole reference, only the part on the first line.
I would expect renovate to either fail with an error because it can't update multiline references or update the whole reference (does not need to stay split on multiple lines).
Relevant debug logs
Logs
Have you created a minimal reproduction repository?
No reproduction repository
The text was updated successfully, but these errors were encountered: