Skip to content

odo init does not ask for starter project if the Devfile stack contains extra files #6638

@valaparthvi

Description

@valaparthvi

/kind bug

What versions of software are you using?

Operating System:
MacOS
Output of odo version:
odo v3.7.0 (ef6489c)

How did you run odo exactly?

  1. odo init in interactive mode.

Actual behavior

$ odo init

  __
 /  \__     Initializing a new component
 \__/  \    Files: No source code detected, a starter project will be created in the current directory
 /  \__/    odo version: v3.7.0
 \__/

Interactive mode enabled, please answer the following questions:
? Select language: Java
? Select project type: Spring Boot
? Select version:  2.0.0
 ✓  Downloading devfile "java-springboot:2.0.0" from registry "DefaultDevfileRegistry" [3s]

↪ Container Configuration "tools":
  OPEN PORTS:
    - 8080
    - 5858
  ENVIRONMENT VARIABLES:
    - DEBUG_PORT = 5858

? Select container for which you want to change configuration? NONE - configuration is correct
? Enter component name: deploy-exec-demo

You can automate this command by executing:
   odo init --name deploy-exec-demo --devfile java-springboot --devfile-registry DefaultDevfileRegistry --devfile-version 2.0.0

Your new component 'deploy-exec-demo' is ready in the current directory.
To start editing your component, use 'odo dev' and open this folder in your favorite IDE.
Changes will be directly reflected on the cluster.
To deploy your component to a cluster use "odo deploy".

odo does not ask to download the Devfile even though I started with an empty directory.

Expected behavior

odo should ask to download starter project when beginning with an empty directory.

Any logs, error output, etc?

Metadata

Metadata

Assignees

Labels

area/initIssues or PRs related to `odo init`kind/bugCategorizes issue or PR as related to a bug.priority/HighImportant issue; should be worked on before any other issues (except priority/Critical issue(s)).

Type

No type

Projects

Status

Done ✅

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions