Builder uses rust-stable despite having rust-nightly defined in Flatpak manifest
My Flatpak manifest looks like this:
{
"app-id" : "de.haeckerfelix.Souk.Devel",
"runtime" : "org.gnome.Platform",
"runtime-version" : "master",
"sdk" : "org.gnome.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.rust-nightly",
"org.freedesktop.Sdk.Extension.llvm14"
],
"command" : "souk",
"tags" : [
"nightly"
],
But Builder doesn't want to use /usr/lib/sdk/rust-nightly/bin/rust-analyzer
but keeps using /usr/lib/sdk/rust-stable/bin/rust-analyzer
.
After uninstalling any rust-stable
Flatpak SDK extension from my system (and from the private Builder Flatpak installation), nothing works anymore (no rust-analyzer, no building):
../meson.build:1:0: ERROR: Unknown compiler(s): [['rustc']]
The following exception(s) were encountered:
Running `rustc --version` gave "[Errno 2] No such file or directory: 'rustc'"
It looks like the rust-stable
path is hardcoded somewhere where it shouldn't be. This might be the cause that #1795 doesn't work for example.