Skip to content

compose.yaml gets a different reason from docker-compose.yml #340

Done

Description

@adityankale190895

Docker Compose reads compose.yaml (the current default name), compose.yml, docker-compose.yml and docker-compose.yaml. Today:

  • docker-compose.yml and docker-compose.yaml at the root report Configuration file(s) changed; full validation required
  • compose.yaml and compose.yml report Unknown changed file: …
  • docker-compose.yml in a subdirectory (deploy/docker-compose.yml) also reports Unknown changed file: …

The difference comes from isConfigFile in src/repo/impact.ts, which matches any path that starts with docker. That matches only at the root, and never matches compose.*. All of them already run the full suite, so only the reason changes.

Done when:

  • All four names report Configuration file(s) changed; full validation required, both at the repository root and in a subdirectory.
  • There's a test case for compose.yaml, compose.yml and deploy/docker-compose.yml.

New to DiffCI? See CONTRIBUTING.md. #142 and its PRs (#144, #155, #156) are a worked example of this exact change. Add a case to tests/repo/tool-config-reasons.test.ts, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Activity

  1. added
    enhancement
    good first issue
    on Nov 23, 2026
  2. adityankale190895 commented on Dec 3, 2026

    @adityankale190895
    MemberAuthor

    I will take this. I will classify all four Compose filenames by basename, add the requested root/subdirectory regression coverage and the fallback-reason docs row, then run the affected tests and npm test.

  3. adityankale190895 commented on Dec 3, 2026

    @adityankale190895
    MemberAuthor

    Fixed in c0eeeb5 on branch fix/core-340-compose-config-reason. Docker Compose's four conventional filenames now receive the configuration fallback consistently at root and nested paths, with regression coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions