flapdoodle-oss / de.flapdoodle.embed.mongo

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

Support for ubuntu 24.04 #517

Closed lsfischer closed 5 months ago

lsfischer commented 5 months ago

Hi!

Ubuntu 24.04 was released 25/04/2024. There's currently no support for it when trying to use falpdoodle's embeded mongodb. When running on a ubuntu 24.04 machine, we get

Caused by: java.lang.IllegalArgumentException: could not resolve package for V7_0:Platform{operatingSystem=Linux, architecture=X86_64, distribution=Ubuntu} 
...
(os=Linux)
  (os=Linux and (version is any of Ubuntu_16_04, Ubuntu_16_10, Ubuntu_18_04, Ubuntu_18_10, Ubuntu_19_04, Ubuntu_19_10, Ubuntu_20_04, Ubuntu_20_10, Ubuntu_21_04, Ubuntu_21_10, Ubuntu_22_04, Ubuntu_22_10, Ubuntu_23_04, Ubuntu_23_10))
  'UbuntuPackageFinder'

As visible in the message and here https://github.com/flapdoodle-oss/de.flapdoodle.os/blob/main/src/main/java/de/flapdoodle/os/linux/UbuntuVersion.java, there's currently no support for Ubuntu_24_04.

michaelmosmann commented 5 months ago

@lsfischer .. ah.. ok, i will add ubuntu 24.04.

lsfischer commented 5 months ago

@michaelmosmann I had started a tiny PR adding the support for the package finder for ubuntu 24.04 https://github.com/flapdoodle-oss/de.flapdoodle.os/pull/16 If needed, I can continue the implementation in this repository as well to support 24.04 later today :) let me know if you need assistance

michaelmosmann commented 5 months ago

@lsfischer .. the real fun happens here: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo.packageresolver .. but the required change is not obvious.. so i think i will build a new release of everything in the evening..

michaelmosmann commented 5 months ago

@lsfischer release done.. 4.13.0