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

Support for YAML anchors and aliases? #128

Closed
why-not-try-calmer opened this issue May 20, 2023 · 1 comment · Fixed by #129
Closed

Support for YAML anchors and aliases? #128

why-not-try-calmer opened this issue May 20, 2023 · 1 comment · Fixed by #129

Comments

@why-not-try-calmer
Copy link

I would seem that, as of the latest version, this action doesn't support anchors and aliases. For example if, in my docker-compose.yml file, I define a service as:

  service1: &service1-config
  service2:
    <<: *service1-config

the action will throw on the alias (<<). Is there any plan to support this syntactical feature in an upcoming release?

@whoan whoan mentioned this issue Jun 4, 2023
@whoan
Copy link
Owner

whoan commented Jun 4, 2023

@why-not-try-calmer yq version used by the action supports anchors and aliases. The problem was that I had to ignore services with no image to avoid errors like this one:

Error: cannot match with !!null, can only match strings. Hint: Most often you'll want to use '|=' over '=' for this operation

Is that the same one you were having?

@whoan whoan closed this as completed in #129 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants