Fix: set PWD only if not set by kianelbo · Pull Request #13268 · docker/compose

Conversation

@kianelbo

What I did
Check whether a PWD env variable is present and only if it isn't, set it to the result of os.Getwd().

Related issue
Fixes #13265

ndeloof

Choose a reason for hiding this comment

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

LGMT with a minor naming issue

pwd, err := os.Getwd()
if err != nil {
return nil, err
envOptions := []cli.ProjectOptionsFn{

Choose a reason for hiding this comment

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

envOptions is a bad name, as those many options are not only set to manage env, but many aspected of project setup. A basic opts would be better

@codecov

Signed-off-by: Kian Eliasi <kian.elbo@gmail.com>

ndeloof

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request

Oct 20, 2025

2 participants

@kianelbo @ndeloof