Skip to content

Tolerate missing env file on more runtime commands - #13603

Merged
glours merged 1 commit into
docker:mainfrom
maxproske:feature/13601-runtime-ops
Jul 27, 2026
Merged

Tolerate missing env file on more runtime commands#13603
glours merged 1 commit into
docker:mainfrom
maxproske:feature/13601-runtime-ops

Conversation

@maxproske

Copy link
Copy Markdown
Contributor

What I did

Align toProjectName (used by exec, image, etc.) with projectOrName (used by ps, logs, etc.), which already had these flags since #13156

I know, this skips compose.yaml parsing. Being pragmatic for now, as I haven't touched compose-go yet, but can probably add a function to avoid the need to call ToProject at all.

Related issue

Closes#13601

@maxproske
maxproske requested a review from a team as a code ownerFebruary 21, 2026 06:13
ndeloof
ndeloof previously approved these changes Feb 23, 2026
@ndeloof
ndeloof enabled auto-merge (rebase) February 23, 2026 07:34
@glours
gloursforce-pushed the feature/13601-runtime-ops branch from ed6a96d to 3a8ff9cCompareMarch 31, 2026 14:05
@glours

Copy link
Copy Markdown
Contributor

Hey @maxproske 👋
Can you check your changes, the CI is not happy
FYI I rebase your branch on top of main via the GitHub UI

auto-merge was automatically disabled June 10, 2026 00:48

Pull request was closed

@maxproske

Copy link
Copy Markdown
ContributorAuthor

@glours Could I please get a reopen here?

@gloursglours reopened this Jul 20, 2026
@glours
glours requested a review from a team as a code ownerJuly 20, 2026 15:54
@stale

staleBot commented Jul 20, 2026

Copy link
Copy Markdown

This issue has been automatically marked as not stale anymore due to the recent activity.

1 similar comment
@stale

staleBot commented Jul 20, 2026

Copy link
Copy Markdown

This issue has been automatically marked as not stale anymore due to the recent activity.

@stalestaleBot removed the stale label Jul 20, 2026
@glours

Copy link
Copy Markdown
Contributor

@maxproske done

Signed-off-by: Max Proske <max@mproske.com>
@maxproske

Copy link
Copy Markdown
ContributorAuthor

@glours Thanks! Fixed test order on previously approved changes

@codecov

codecovBot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gloursglours left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maxproske

@glours
glours merged commit 54e0373 into docker:mainJul 27, 2026
42 checks passed
glours added a commit that referenced this pull request Jul 30, 2026
Follow-up to #13603: scale, watch and shell completion loaded the
project without any tolerance option, so a missing env_file on a
service not involved in the operation aborted the command, while
up/exec/ps already tolerate this since #13156 and #13603.
Mirror the WithServices pattern: load with WithoutEnvironmentResolution
and resolve the environment once the project has been reduced to the
selected services, so targeted services still get their env_file
validated. Completion only needs names and never resolves. This also
aligns the config hash of scale-created containers with up-created
ones.
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
Sign up for freeto 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.

[BUG] exec attempts to validate env_file for a different non-dependent service

3 participants

@maxproske@glours@ndeloof