]> piware.de Git - bin.git/commitdiff
cclaude: fix for go and rust projects
authorMartin Pitt <martin@piware.de>
Fri, 31 Jul 2026 04:30:27 +0000 (06:30 +0200)
committerMartin Pitt <martin@piware.de>
Fri, 31 Jul 2026 04:30:27 +0000 (06:30 +0200)
cclaude

diff --git a/cclaude b/cclaude
index 8a9a3a101a74dc46e038b668f5fc9e280fb6180a..f60df4c2119a769b49632ee030db63095fe2e885 100755 (executable)
--- a/cclaude
+++ b/cclaude
@@ -8,7 +8,10 @@ IMG=localhost/claude
 if ! podman image inspect "$IMG" >/dev/null; then
     podman build -t "$IMG" -f - /run <<EOF
 FROM fedora:latest
-RUN dnf install -y git strace gdb python3 python3-pytest gh rpmbuild jq yq util-linux-script ShellCheck \
+RUN dnf install -y git strace gdb python3 python3-pytest gh rpmbuild jq yq util-linux-script just \
+                   openssl openssl-devel \
+                   ShellCheck cargo rust rustfmt clippy golang \
+    && dnf install -y --setopt=install_weak_deps=False systemd \
     && dnf clean all
 EOF
 fi
@@ -38,6 +41,8 @@ podman run -it --rm --userns=keep-id --init --network=host \
     -v /tmp:/tmp \
     -w $PWD \
     -e DISABLE_AUTOUPDATER=1 \
+    -e CARGO_HOME="$CARGO_HOME" \
+    -e GOPATH="$GOPATH" \
     -e HOME=$HOME \
     --device=/dev/kvm \
     $IMG \