firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.06k stars 118 forks source link

Reference to reference does not work in before_script #1143

Closed trygve55 closed 4 months ago

trygve55 commented 4 months ago

Minimal .gitlab-ci.yml illustrating the issue

---
.snippets:
  test:
    - echo "Big bang!"

.job_b:
  content:
    - !reference [.snippets, test]

job_a:
  before_script: !reference [.job_b, content]
  script:
    - echo "Hello world!"

Expected behavior Print "Big bang!" and "Hello world!". But instead we get job_a before_script contains non string value

Host information Ubuntu 20.04 gitlab-ci-local 4.46.1

firecow commented 4 months ago

This is fixed in the upcoming 4.47.0

image