-
Notifications
You must be signed in to change notification settings - Fork 244
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
Invalid URL annotation generated with binary component #2175
Comments
/kind bug |
@jeffmaury Where/how you got this annotation ? |
/state in-analysis |
@jeffmaury do you mean |
I mean no / at all because it's a relative URL |
ACK, it all depends on the context of the relative reference. if it's in a generated file and assuming the resource being pointed at is in the target subdirectory of where that file is placed then but it really depends on the context of where that file containing that URI reference is located Problems: relative references are not defined for the file:// scheme , sucks isn't it :-) |
@kadel @jeffmaury @girishramnani Should this issue also include the local components? |
Do you really need this annotation for local components? The information in this annotation doesn't provide enough information to do import no? To be honest I would like to get rid of this annotation for binary and local components completely. @mik-dass It would be good to investigate if we even need this annotation for local and binary components. It doesn't make much sense to store a path that is on the local system on the cluster. odo should read this path from If we can get rid of
|
After some searching I found that the annotations |
[kind/bug]
What versions of software are you using?
odo version
:How did you run odo exactly?
odo create java:8 bincomp --binary target\springboot-rest2-1.0.0-SNAPSHOT.jar --project bin --app binapp
Actual behavior
The generated annotation is:
app.openshift.io/vcs-uri: 'file:///target/springboot-rest2-1.0.0-SNAPSHOT.jar'
Expected behavior
Should be:
app.openshift.io/vcs-uri: 'file:target/springboot-rest2-1.0.0-SNAPSHOT.jar'
That would allow tooling (VSCode, IntelliJ) to use this annotation to import a component from the deployment.
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered: