Skip to content

Commit

Permalink
load project from explicit --files when set
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Dec 14, 2022
1 parent 8c39b5b commit 4c4e54a
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 4c4e54a

Please sign in to comment.