devcontainers / devcontainers/features

Feature trigger installation of older / unwanted version of packages, i.e. rust install lldb default for ubuntu even when higher version installed

Offen
#807 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
1.5k
Forks
621
Ø Merge
6 T. 53 Min.
Gemergte PRs (30 T.)
9

Beschreibung

This is not particular to rust feature, but I have a docker image using clang-18, lldb-18, etc. The default for Ubuntu 20.04 is clang-10, lldb-10, etc.

When I add the rust feature I get the wrong version installed because apt install lldb doesn't seem to be aware that lldb-18 already met that requirement.

I think this is more an apt issue than a devcontainer but I am hitting this issue most with devcontainer features since they are not aware of the pre-existing installation.

One potential solution is to have a LLVM version variable added to rust so that it tries to install the desired version (18 in this case) instead of the default lldb.

Another option would be for rust not to install lldb if not requested.

I was wondering if there was a solution at the apt level where I could tell apt that "lldb" is same as "lldb-18" as to preven this for non llvm recipe as well if I detect similar issue.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.