-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Introduce CurateOutcomeBuildItem.getApplicationModuleDirectory() #44104
Conversation
6c8c2e4
to
7451f95
Compare
@iocanel fyi, iirc you were looking for something like this |
7451f95
to
3156462
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you! |
This comment has been minimized.
This comment has been minimized.
core/deployment/src/main/java/io/quarkus/deployment/pkg/builditem/CurateOutcomeBuildItem.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@melloware would you give it a try with Quinoa? With it we can remove the check for null as it will always be returned. |
Yes let me test and report back. |
It locating the module running the test, not the put together "test project". |
Since that's what is exposed as the |
@aloubyansky then we need to fix this right? because the project is the put together test project right? |
That could be tricky, I'll have a look. |
In the other case, if we can't, we should change the test to adapt |
this seems approved and ci is passing, should we merge? |
Unfortunately, no. There is nothing in the core CI that uses it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a Request changes so that we don't merge by mistake.
See @aloubyansky 's comment above.
3156462
to
a3f6746
Compare
With now merged #44825 this one should be sorted now |
Status for workflow
|
Actually, it won't work in all configs. This will require a different approach. |
@aloubyansky will you still find something for this? |
Yes, it may be end up being more involved. |
Closes #44013
FYI @ia3andy @melloware @mcruzdev
I'm curious what this method will be used for.
There is a case when this project is actually not available, for example during re-augmentation of a mutable-jar (remote-dev being one of the use-cases), in which case I'm returning the current directory. Although that may not match the expectation. OTOH, if I return null instead, every caller of this method will have to check for null and do something about it. So it depends on what this will be used for.