-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library does not download the extra stack files #1002
Comments
Looks like the index is not generated correctly. The
|
As a side note, this issue blocks odo from using the latest devfile/library(on main branch). devfile/library tries to convert URI-ed data to inline-d while parsing a Devfile, and since it does not find the necessary stack files, it throws the following error: $ mkcd /tmp/demo
$ odo init --devfile go --name my-go-app --devfile-version 2.0.0
__
/ \__ Initializing a new component
\__/ \
/ \__/ odo version: v3.5.0
\__/
✓ Downloading devfile "go:2.0.0" [4s]
✗ unable to parse devfile: failed to parse kubernetes/openshift component from uri to inlined: failed to convert Kubernetes Uri to inlined for component 'deploy': failed to read kubernetes resources definition from path '/tmp/demo/kubernetes/deploy.yaml': open /tmp/demo/kubernetes/deploy.yaml: no such file or directory
the command failed, the devfile has been removed from current directory
Unless this issue is fixed, I think we'd be blocked on using the latest devfile/library(on main branch) which in turn blocks us from fixing another issue that requires using the recent container-overrides and pod-overrides changes. |
devfile/registry-support#156 looks to fix this issue discovered in the registry library. |
@valaparthvi The fix is now in staging and production. This issue should now be resolved. |
@kadel FYI, since some stacks may have an archive.tar file now, there will be an additional telemetry download event. Explanation given here: #933 (comment) |
Great! Thank you for fixing it @michael-valdron @kim-tsao! I can confirm it works for odo. |
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area library
/area registry
What versions of software are you using?
github.com/devfile/registry-support/registry-library v0.0.0-20221220163850-cab341c8f8f8
Go project
Operating System and version:
Fedora 35
Go Pkg Version:
go version go1.18.5 linux/amd64
Bug Summary
Describe the bug:
registry-support does not download the extra stack files.
To Reproduce:
mkdir /tmp/demo && cd /tmp/demo
main.go
Expected behavior
It should download the extra stack files, in this case
kubernetes
anddocker
directory.Looking at https://github.com/devfile/registry-support/blob/main/registry-library/library/library.go#L281, it should download 'archive.tar' in the destination directory, in this case
/tmp/demo
, but it does not.Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
Additional context
odo issue: redhat-developer/odo#6448
This bug is also reproducible when I used
registry-library
binary with the following command.Any workaround?
Suggestion on how to fix the bug
Target Date: 01-13-2023
The text was updated successfully, but these errors were encountered: