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

オープン
#807 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
1.5k
フォーク
622
平均マージ
6日 53分
マージ済み PR(30日)
9

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

rust featureのパッケージインストールのエントリーポイントから始め、すでにclang-18とlldb-18が入っているUbuntu 20.04のDockerイメージで動作を再現します。提案されている結果、つまり対応するLLVMバージョンをインストールするか、要求されない限りlldbをスキップするかを比較し、どの動作を受け入れるかを定義します。issueではファイルもテストも指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, rust, shell
領域
devops, infrastructure, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。