Skip to content
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

gitlab-ci-local fails to parse to-be-continous templates #1154

Closed
aveyrenc opened this issue Mar 19, 2024 · 0 comments
Closed

gitlab-ci-local fails to parse to-be-continous templates #1154

aveyrenc opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aveyrenc
Copy link
Contributor

aveyrenc commented Mar 19, 2024

Minimal .gitlab-ci.yml illustrating the issue

---
include:
  - remote: "https://gitlab.com/to-be-continuous/docker/raw/5.8.1/templates/gitlab-ci-docker.yml"

Expected behavior
The included file is downloaded and parsed correctly.

Host information
macOS 14
gitlab-ci-local 4.47.0

Containerd binary
Docker via Colima.

Additional context
The included file is using components, which gitlab-ci-local is now able to handle, thanks to #1115.

It now has two problems:

  • You cannot use interpolation of input variables containing an hyphen like this because the regexp doesn't allow them
  • Interpolation of variables with values containing escapes produce invalid JSON output which make the JSON parsing fail here
@aveyrenc aveyrenc mentioned this issue Mar 19, 2024
@firecow firecow added the bug Something isn't working label Mar 21, 2024
@firecow firecow closed this as completed in 3371034 Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants