You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloading starter projects using the Registry Library causes an error if the host url contains a / at the end of it, for example https://registry.devfile.io/ would cause this error but https://registry.devfile.io would work fine.
To Reproduce:
CLI:
go build && ./registry-library download https://registry.devfile.io/ nodejs nodejs-starter
michael-valdron
changed the title
registry download under Registry Library returns error when registry base url ends with a /
Starter Project downloading under Registry Library returns error when registry base url ends with a /Jul 19, 2022
michael-valdron
changed the title
Starter Project downloading under Registry Library returns error when registry base url ends with a /
Starter Project downloading under Registry Library causes error when registry base url ends with a /Jul 19, 2022
/kind bug
Which area this bug is related to?
/area registry
What versions of software are you using?
Operating System: Linux
Go Pkg Version: 1.18
Bug Summary
Describe the bug:
Downloading starter projects using the Registry Library causes an error if the host url contains a
/
at the end of it, for examplehttps://registry.devfile.io/
would cause this error buthttps://registry.devfile.io
would work fine.To Reproduce:
CLI:
go build && ./registry-library download https://registry.devfile.io/ nodejs nodejs-starter
Library Import:
Expected behavior
Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable.
Additional context
Any workaround?
In the case of the above steps to reproduce, use:
go build && ./registry-library download https://registry.devfile.io nodejs nodejs-starter
Suggestion on how to fix the bug
library/library.go#L426 should be changed to prevent a bad join.
Target Date: 07-21-2022
The text was updated successfully, but these errors were encountered: