Skip to content

Commit

Permalink
Merge pull request #10062 from ndeloof/9554
Browse files Browse the repository at this point in the history
load project from files when explicitly set by user
  • Loading branch information
glours committed Dec 15, 2022
2 parents 1b1f783 + 8498486 commit aa0720f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (o *projectOptions) addProjectFlags(f *pflag.FlagSet) {
func (o *projectOptions) projectOrName(services ...string) (*types.Project, string, error) {
name := o.ProjectName
var project *types.Project
if o.ProjectName == "" {
if len(o.ConfigPaths) > 0 || o.ProjectName == "" {
p, err := o.toProject(services)
if err != nil {
envProjectName := os.Getenv("COMPOSE_PROJECT_NAME")
Expand Down

0 comments on commit aa0720f

Please sign in to comment.