-
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
GRPC example on Fedora 39 doesn't compile #42931
Comments
/cc @alesj (grpc), @cescoffier (grpc) |
Do you get this only on Fedora 39? We pull all os/architectures in our dependencies. We know that it's sub-optimal, but we have to do it to make sure we can build the proto files. |
Yes, it works fine on MacOS. Interestingly enough, ALL dependencies get pulled no matter what the OS. This is on my repo on MacOS which ironically gets pulled through our corporate Nexus mirror.
|
I will try to get a fedora 39 to test it, but I don't have a specific nexus server. Do you know if the issue occurs if we use a fedora 39 base docker image? |
So the problem is this thing: https://github.com/quarkusio/quarkus/blob/main/extensions/grpc/codegen/pom.xml#L28-L135 . I think we should try to reduce the dependencies by having profiles enabled with arch. Using os family + arch profile, I think we should be able to reduce this significantly. I don't think we need to catch all the corner cases, we could at least greatly reduce the dependencies if matching os and arch. @tmulle maybe that's something you could create a PR for? |
@gsmet sure I can submit one. I’ll modify the pom.xml to have different profiles based on the os and arch. |
@gsmet why did you re-open it? |
Ok, seems to break tests... |
I had a memory flash this morning - this is precisely why it was not done like this 3/4 years ago. I remember Michal complaining about it :-) |
That's a shame..I still get my first PR to Quarkus badge right? ;-) So, since I'm new to the Quarkus build process why did this ultimately fail? Did I not run the right test by using Why do we use Gradle and Maven together? I did just read about Gradle and Maven profile activation and people seem to try to get around it by writing properties to files or changing the gradle builds to read the System env variables directly using if/then code branches. Like I said in my commit/PR message I did try to read the I thought you might be using this plugin which sets the variables and can be used in the builds: But I'm not sure if Gradle would be able to read them.. |
I just saw there is a Gradle version of the plugin I mentioned and it actually uses the same maven plugin under the hood. So, I wonder if reading the Then no more need for profiles. |
@tmulle try another PR using |
I tried that before I commited the first PR but that didn't work. The I wasn't sure if it was the gradle build failing or the maven. |
Describe the bug
When creating a new app using the quarkus start webpage which just contains GRPC extension and trying to compile it on Fedora 39 fails:
We have a corporate Nexus server which is mirroring Maven Central and it should be pulling automatically, but that's another issue. The real issue is why is GRPC trying to pull unecessary dependencies?
Why is GRPC trying to pull IBM s390 on a Linux Fedora 39 system?
This is the POM.xml that was generated by the quarkus webpage:
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
Linux 6.10.6-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 19 14:35:32 UTC 2024 x86_64 GNU/Linux
Output of
java -version
JDK 21 and JDK17
Quarkus version or git rev
3.14.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven
Additional information
No response
The text was updated successfully, but these errors were encountered: