flapdoodle-oss / de.flapdoodle.embed.mongo

...will provide a platform neutral way for running mongodb in unittests.
Apache License 2.0
910 stars 160 forks source link

Support for Ubuntu 24.10 in de.flapdoodle.embed.mongo #544

Open sebherrerabe opened 1 month ago

sebherrerabe commented 1 month ago

Hi!

Ubuntu 24.10 was recently released, and there's currently no support for it when trying to use flapdoodle's embedded MongoDB. I realise that this version is still quite new, but I had to switch to 24.10 due to kernel-related problems in earlier versions, which are now resolved in this latest release. However, when running on an Ubuntu 24.10 machine, I encountered the following error:


 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eu.yukan.platform.common.dal.sequence.SequenceManager': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mongoTemplate' defined in class path resource ...

It appears that flapdoodle.embed.mongo does not currently recognize Ubuntu 24.10 as a valid distribution:

use 'UbuntuPackageFinder' with Ubuntu_24_04, Ubuntu_23_10, Ubuntu_23_04, Ubuntu_22_10, Ubuntu_22_04, Ubuntu_21_10, Ubuntu_21_04, Ubuntu_20_10, Ubuntu_20_04, Ubuntu_19_10, Ubuntu_19_04, Ubuntu_18_10, Ubuntu_18_04, Ubuntu_16_10, Ubuntu_16_04 until package found.

As visible in the message and the UbuntuVersion class here, there is no support for Ubuntu 24.10 yet. Could you please add support for this version?

Thank you for your help and for maintaining this great library!

michaelmosmann commented 1 month ago

@sebherrerabe you are right. will do..

ugurberkecan commented 2 days ago

any update ?