odo create fails to download files in assigned --context for odo create --starter

Created on 19 Jan 2021  Â·  5Comments  Â·  Source: openshift/odo

/kind bug

What versions of software are you using?

Operating System: fedora

Output of odo version: odo v2.0.3 (e110bcbcf)

How did you run odo exactly?

Running command from a non empty directory

odo create nodejs --starter --context /tmp/check_odo

Actual behavior

For above command Files are downloaded in Current working directory instead of --context specified in the exam.

 $ odo create nodejs --starter --context /tmp/new
 âš   odo may not work as expected in a default project, please run the odo component in a non-default project. To create a new project, use `odo project create`.
Validation
 ✓  Checking devfile existence [13643ns]
 ✓  Creating a devfile component from registry: DefaultDevfileRegistry [18060ns]
 ✓  Validating devfile component [19034ns]

Starter Project
 ✓  Downloading starter project nodejs-starter from https://github.com/odo-devfiles/nodejs-ex.git [2s]

Please use `odo push` command to create the component with source deployed

 $ l 
total 52K
drwxr-xr-x.  3 anand anand  180 Jan 19 15:47 .
drwxrwxrwt. 40 root  root  1020 Jan 19 15:34 ..
-rw-r--r--.  1 anand anand 1.6K Jan 19 15:47 .gitignore
-rw-r--r--.  1 anand anand  14K Jan 19 15:47 LICENSE
-rw-r--r--.  1 anand anand  391 Jan 19 15:47 package.json
-rw-r--r--.  1 anand anand  18K Jan 19 15:47 package-lock.json
-rw-r--r--.  1 anand anand 1.2K Jan 19 15:47 README.md
-rw-r--r--.  1 anand anand 1.9K Jan 19 15:47 server.js
drwxr-xr-x.  2 anand anand   60 Jan 19 15:47 test

$ l /tmp/new 
total 8.0K
drwxr-xr-x.  3 anand anand  100 Jan 19 15:47 .
drwxrwxrwt. 40 root  root  1020 Jan 19 15:48 ..
-rw-r--r--.  1 anand anand 1.4K Jan 19 15:47 devfile.yaml
-rw-------.  1 anand anand   43 Jan 19 15:49 .gitignore
drwxr-x---.  3 anand anand   60 Jan 19 15:47 .odo

Expected behavior

Is to download the the starter project in the context folder instead of current working dir

Any logs, error output, etc?

N/A

kinbug

All 5 comments

I can work on this

Was this working before @anandrkskd?

This is a new scenario that I tried and failed.

@dharmit Can we move this to Sprint 197?

@dharmit Can we move this to Sprint 197?

Moved.

Was this page helpful?
0 / 5 - 0 ratings