-
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
Incorrect changes after running update-extension-dependencies.sh #22836
Comments
The cause is described here: #22810 (comment) @aloubyansky do you want to take this? |
I am busy with other tasks currently, so not right now. |
I'll try to have look at using that relocations profile later today. |
I'm not sure it's the right fix. You can use it in the script but personally, I build things separately to make sure it builds before running the script. And we don't want to enable this profile always as one of the point of this work was to reduce the number of modules. I think we can probably live with this limitation (but I would fix it in the build you have in the script, so we could say "just ask for a full build when the script asks to fix it"), especially since CI complains loudly. |
To be clear: the script only builds on top of what's in that generated descriptor and that generation picks up "removed" extensions. |
Good news: I don't have time to check whether we can fix the root cause in the descriptor generation, so we have two options AFAICS:
I suppose we want to go with option two? |
I found one difference with {
"name" : "Amazon Services Common",
"description" : "Common components for AWS Lambda functions",
"metadata" : {
"keywords" : [ "amazon services", "aws", "amazon" ],
"categories" : [ "data" ],
"status" : "stable",
"unlisted" : true,
"built-with-quarkus-core" : "999-SNAPSHOT",
"extension-dependencies" : [ "io.quarkus:quarkus-core", "io.quarkus:quarkus-arc", "io.quarkus:quarkus-netty" ]
},
"artifact" : "io.quarkus:quarkus-amazon-common::jar:999-SNAPSHOT",
"origins" : [ "io.quarkus:quarkus-bom-quarkus-platform-descriptor:999-SNAPSHOT:json:999-SNAPSHOT" ]
} This exists after building with |
It seems we're missing a relocation for |
@famod it's not missing. I don't think we need one given it's not a user-exposed extension. Let's not make things just to fix a totally unrelated issue. |
@gsmet It's not unrelated. If |
The alternative would be to filter out that one artifact in the script (which I find a bit brittle, but it's doable). I'll wait until you @gsmet and @aloubyansky have decided which way to go. |
It's unrelated because you're trying to overcome an issue with a script by adding some stuff that shouldn't be related. You basically need relocations to say "this thing is not an extension anymore". That shouldn't be necessary. What I fail to see is why we are somehow getting all the extensions that are in the local Maven repo? Why isn't it coming from what's in the tree or are at least filtered with what's in the tree. |
That's what I meant with
which has nothing to do with the script in the first place. 🙂 |
If you:
update-extension-dependencies.sh
because, for example, you're adding an extensionThen the output contains references to the modules that were moved out of the repository.
This was found while working on #22810
The text was updated successfully, but these errors were encountered: