From b042aeecc95b4d9c2248c974bd40c3915b22ed27 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Sat, 18 Sep 2021 21:17:22 +0200
Subject: [PATCH] testing/prometheus-wireguard-exporter: run cargo with
 --locked

---
 testing/prometheus-wireguard-exporter/APKBUILD | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testing/prometheus-wireguard-exporter/APKBUILD b/testing/prometheus-wireguard-exporter/APKBUILD
index 38e472e0ebe4..5d3beb6204f1 100644
--- a/testing/prometheus-wireguard-exporter/APKBUILD
+++ b/testing/prometheus-wireguard-exporter/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer:
 pkgname=prometheus-wireguard-exporter
 pkgver=3.2.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A Prometheus exporter for WireGuard, written in Rust"
 url="https://github.com/MindFlavor/prometheus_wireguard_exporter"
 arch="all !s390x !ppc64le !mips !mips64 !riscv64" #Crypto is broken (https://github.com/briansmith/ring/issues/389)
@@ -16,15 +16,15 @@ options="net"
 builddir="$srcdir"/prometheus_wireguard_exporter-"$pkgver"
 
 build() {
-	cargo build --release
+	cargo build --release --locked
 }
 
 check() {
-	cargo test --release
+	cargo test --release --locked
 }
 
 package() {
-	cargo install --path . --root="$pkgdir"/usr
+	cargo install --locked --path . --root="$pkgdir"/usr
 	rm -f "$pkgdir"/usr/.crates2.json
 	rm -f "$pkgdir"/usr/.crates.toml
 
-- 
GitLab