From fbae9ed0710106589d9c97b493a174729be47206 Mon Sep 17 00:00:00 2001 From: Jonathan Woollett-Light Date: Wed, 4 Oct 2023 11:30:33 +0100 Subject: [PATCH] build: Add `cargo-udeps` to devctr Adds `cargo-udeps` and the Rust `nightly` toolchain to support it, to dev container. Signed-off-by: Jonathan Woollett-Light --- tools/devctr/Dockerfile | 3 ++- tools/devctr/poetry.lock | 14 +++++++------- tools/devtool | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/devctr/Dockerfile b/tools/devctr/Dockerfile index d3fd64d893de..9ada623be373 100644 --- a/tools/devctr/Dockerfile +++ b/tools/devctr/Dockerfile @@ -71,9 +71,10 @@ RUN cd /tmp/poetry && \ # Install the Rust toolchain. Kani only work on x86, so only try to install it there. RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \ + && rustup install nightly \ && rustup target add $ARCH-unknown-linux-musl \ && rustup component add llvm-tools-preview \ - && cargo install cargo-audit cargo-deny grcov cargo-sort \ + && cargo install cargo-audit cargo-deny grcov cargo-sort cargo-udeps \ && (if [ "$ARCH" = "x86_64" ]; then cargo install kani-verifier && cargo kani setup; else true; fi) \ && rm -rf "$CARGO_HOME/registry" \ && ln -s "$CARGO_REGISTRY_DIR" "$CARGO_HOME/registry" \ diff --git a/tools/devctr/poetry.lock b/tools/devctr/poetry.lock index 3baa62a9c88e..c0cc23756bc8 100644 --- a/tools/devctr/poetry.lock +++ b/tools/devctr/poetry.lock @@ -160,13 +160,13 @@ python-dateutil = ">=2.7.0" [[package]] name = "astroid" -version = "2.15.6" +version = "2.15.7" description = "An abstract syntax tree for Python with inference support." optional = false python-versions = ">=3.7.2" files = [ - {file = "astroid-2.15.6-py3-none-any.whl", hash = "sha256:389656ca57b6108f939cf5d2f9a2a825a3be50ba9d589670f393236e0a03b91c"}, - {file = "astroid-2.15.6.tar.gz", hash = "sha256:903f024859b7c7687d7a7f3a3f73b17301f8e42dfd9cc9df9d4418172d3e2dbd"}, + {file = "astroid-2.15.7-py3-none-any.whl", hash = "sha256:958f280532e36ca84a13023f15cb1556fb6792d193acb87e1f3ca536b6fa6bd2"}, + {file = "astroid-2.15.7.tar.gz", hash = "sha256:c522f2832a900e27a7d284b9b6ef670d2495f760ede3c8c0b004a5641d3c5987"}, ] [package.dependencies] @@ -1256,17 +1256,17 @@ plugins = ["importlib-metadata"] [[package]] name = "pylint" -version = "2.17.5" +version = "2.17.6" description = "python code static checker" optional = false python-versions = ">=3.7.2" files = [ - {file = "pylint-2.17.5-py3-none-any.whl", hash = "sha256:73995fb8216d3bed149c8d51bba25b2c52a8251a2c8ac846ec668ce38fab5413"}, - {file = "pylint-2.17.5.tar.gz", hash = "sha256:f7b601cbc06fef7e62a754e2b41294c2aa31f1cb659624b9a85bcba29eaf8252"}, + {file = "pylint-2.17.6-py3-none-any.whl", hash = "sha256:18a1412e873caf8ffb56b760ce1b5643675af23e6173a247b502406b24c716af"}, + {file = "pylint-2.17.6.tar.gz", hash = "sha256:be928cce5c76bf9acdc65ad01447a1e0b1a7bccffc609fb7fc40f2513045bd05"}, ] [package.dependencies] -astroid = ">=2.15.6,<=2.17.0-dev0" +astroid = ">=2.15.7,<=2.17.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = {version = ">=0.2", markers = "python_version < \"3.11\""} isort = ">=4.2.5,<6" diff --git a/tools/devtool b/tools/devtool index 9c724a346bff..907fdbb0ced5 100755 --- a/tools/devtool +++ b/tools/devtool @@ -72,7 +72,7 @@ DEVCTR_IMAGE_NO_TAG="public.ecr.aws/firecracker/fcuvm" # Development container tag -DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v64} +DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v65} # Development container image (name:tag) # This should be updated whenever we upgrade the development container.