update-dependencies.sh
1 #!/bin/bash 2 3 # Update dependencies 4 echo "Updating dependencies..." 5 go mod tidy 6 7 # Check if BLAKE3 is available 8 echo "Checking for BLAKE3..." 9 if go list -m github.com/zeebo/blake3 &> /dev/null; then 10 echo "BLAKE3 is available" 11 else 12 echo "BLAKE3 is not available, installing..." 13 go get github.com/zeebo/blake3@v0.2.3 14 go mod tidy 15 fi 16 17 echo "Dependencies updated successfully"