-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
tls
command not found despite the extension present in the application
#42751
Comments
At a glance: The metadata of the extension are correctly defined. On a fresh project I added tls-registry, helm and authzed, all three are registering cli plugins. The output of
So, it must be an issue with the plugin alias. I'll fix it asap. |
@iocanel the ask/issue here is that the tls extension is transitively included. At least thats what @cescoffier reports thus it is expected to be available. I don't think we look in the full tree of dependencies (and should be careful about that too). |
i.e.
but |
so yeah, transitive dependency "blindness". |
The I imagine that we either never needed transitives before, it was tricky to provide a uniform behavior across build tools, or we wanted to avoid the overhead of resolving transitives etc. @aloubyansky do you see another way of getting the transitive extensions? |
There are a couple of ways to get the info about the transitive ones. |
Hi @iocanel , unfortunately the documentation 10. Quarkus CLI commands and development CA (Certificate Authority) says to use |
@amusarra the docs is though wrong. It was written where someone had expliciltiy added the @iocanel @aloubyansky for other plugins (i.e. in jbang catalog or in the environment) we generally require explicit registration/install. we do that for security reasons (don't just run an random Would it be sufficient that |
While the documentation is wrong, it's the experience we want. Having to explicitly add an extension to use commands is counterintuitive. In this case, why do we have transitive extensions at all? So, +1 to search the transitive set and install it automatically. |
@cescoffier i get your ask but if that means quarkus cli startup multiple seconds slower I would be -1. remember |
Yes, that's what I mean - it must work. How it's implemented under the scene does not matter (as soon as it does not extend the startup time which I hope we will reduce drastically at some point) |
Created a pull request. I followed @aloubyansky advice and got the transitives extension from the metadata. This makes things pretty simple and without any significant overhead. |
Awesome @iocanel - can you link the PR? |
Describe the bug
The
tls
commands are not found despite the tls registry extension being present in the application (transitive from quarkus-rest -> quarkus-vertx-http -> quarkus-tls-registry).My very ugly workaround consists of adding the following JSON object to the catalog:
Even with this hack, when launching
quarkus tls
, it complains it cannot find the command (but executes them correctly...)Expected behavior
quarkus tls
commands should be available as soon as the extension is in the classpathActual behavior
The commands are not found.
How to Reproduce?
quarkus tls --help
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: