From 95a41641a4434ecbe0d45364bd8e58b67aa8c10f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= <mkroening@posteo.net>
Date: Thu, 17 Nov 2022 12:16:30 +0100
Subject: [PATCH] CI: Install uhyve with --locked

---
 .github/workflows/ci.yml | 2 +-
 Dockerfile               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d2e4598f..49f3f9b5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -64,7 +64,7 @@ jobs:
     - name: Build dev profile
       run: cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo
     - name: Install uhyve
-      run: cargo install uhyve
+      run: cargo install --locked uhyve
     - name: Check KVM availability
       shell: bash
       run: |
diff --git a/Dockerfile b/Dockerfile
index 8577dc9d..48c81e40 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,7 +36,7 @@ RUN set -eux; \
 # Build dependencies with stable toolchain channel
 FROM rust:bullseye as stable-deps
 RUN set -eux; \
-    cargo install uhyve;
+    cargo install --locked uhyve;
 
 # Install dependencies
 FROM hermit-toolchain as ci-runner
-- 
GitLab