diesel-cli: init at 1.4.0

Fixes #67797.
This commit is contained in:
Ivan Kozik
2019-09-01 03:39:23 +00:00
parent 6bf3d68b8d
commit 1ac28e704f
5 changed files with 1777 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# This updates cargo-lock.patch for the diesel version listed in default.nix.
set -eu -o verbose
here=$PWD
version=$(cat default.nix | grep '^ version = "' | cut -d '"' -f 2)
checkout=$(mktemp -d)
git clone -b "v$version" --depth=1 https://github.com/diesel-rs/diesel "$checkout"
cd "$checkout"
rm -f rust-toolchain
cargo generate-lockfile
git add -f Cargo.lock
git diff HEAD -- Cargo.lock > "$here"/cargo-lock.patch
cd "$here"
rm -rf "$checkout"