lxc / go-lxc

Go bindings for liblxc
https://linuxcontainers.org/lxc
Other
430 stars 76 forks source link

HasAPIExtension does not work because liblxc version check is broken #162

Closed eraserix closed 2 years ago

eraserix commented 2 years ago

On Ubuntu 22.04, liblxc has version reports version 5.0.0~git2209-g5a7b9ce67-0ubuntu1. The "~git..." part breaks the version check in runtimeLiblxcVersionAtLeast(), it always returns false.

LXD has a copy of the same function with a fix for exactly this problem.

tomponline commented 2 years ago

We should update this function and then get lxd to use it to avoid duplication.