Skip to content

Comments

fix: support env_file arrays in docker-compose.yml#1394

Merged
martin-helmich merged 2 commits intomasterfrom
fix/env-file-list
Sep 24, 2025
Merged

fix: support env_file arrays in docker-compose.yml#1394
martin-helmich merged 2 commits intomasterfrom
fix/env-file-list

Conversation

@martin-helmich
Copy link
Member

Summary

  • Fix TypeError when env_file is specified as an array in Docker Compose files
  • Support both single string and array formats for env_file as per Docker Compose specification

Fixes #1392

🤖 Generated with Claude Code

martin-helmich and others added 2 commits September 24, 2025 10:12
Docker Compose supports both string and array formats for env_file.
This fix allows the CLI to handle both formats correctly, preventing
TypeError when arrays are used.

Fixes #1392

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Add Jest tests with mocked fs for enrichStackDefinition function
to verify proper handling of both string and array env_file formats.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@martin-helmich martin-helmich merged commit 04bdf97 into master Sep 24, 2025
11 of 13 checks passed
@martin-helmich martin-helmich deleted the fix/env-file-list branch September 24, 2025 08:48
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.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Array

1 participant