Explorar o código

Pin dependency versions

Vecna hai 6 días
pai
achega
1165196768
Modificáronse 1 ficheiros con 17 adicións e 7 borrados
  1. 17 7
      setup_dependencies.sh

+ 17 - 7
setup_dependencies.sh

@@ -2,12 +2,22 @@
 
 original_path="$PWD"
 
+# Clone a specific branch and commit of a repo
+clone() {
+    url="$1"
+    dirname="${1##*/}"
+    commit="$2"
+
+    git clone "$url" "$dirname" || return 1
+
+    cd "$dirname" && \
+        git checkout "$commit" && \
+        cd ..
+}
+
 cd .. && \
-git clone https://github.com/arkworks-rs/spongefish && \
-    cd spongefish && \
-    git checkout fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1 && \
-    cd .. && \
-git clone -b victor/artifact https://github.com/sigma-rs/sigma-proofs && \
-git clone -b artifact https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler && \
-git clone -b artifact https://git-crysp.uwaterloo.ca/SigmaProtocol/cmz && \
+clone https://github.com/arkworks-rs/spongefish fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1 && \
+clone https://github.com/sigma-rs/sigma-proofs 50716322b5b0d8a2b03c4637d5f4a8ee092c8b36 && \
+clone https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler e00bc5aee794bccad5e1ae4383ad83c2e7815340 && \
+clone https://git-crysp.uwaterloo.ca/SigmaProtocol/cmz 07072dcd2c123aa7e9b56027cd7804fbe67c9bfb && \
 cd "$original_path"