Skip to content

Ensure include node is an array before processing it #323

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

rcjsuen
Copy link
Collaborator

@rcjsuen rcjsuen commented Jun 12, 2025

The include node may not be an array if the user has made a mistake or is not finished editing their Compose file so we should not try to process it if it is not an array.

Fixes #322.

The include node may not be an array if the user has made a mistake or
is not finished editing their Compose file so we should not try to
process it if it is not an array.

Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen rcjsuen self-assigned this Jun 12, 2025
@rcjsuen rcjsuen merged commit d130e78 into main Jun 12, 2025
18 checks passed
@rcjsuen rcjsuen deleted the check-include-before-processing branch June 12, 2025 12:29
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 this pull request may close these issues.

Should not assume the include node will always be an array
1 participant