Skip to content

Commit

Permalink
Simplify the install_uniffi_bindgen_go script
Browse files Browse the repository at this point in the history
There's no need to manually clone the uniffi-bindgen-go repo and then
use the `cargo install` `--path` switch, we can use the `--git` option
directly.

This is also documented on the uniffi-bindgen-go
repo: https://github.com/NordSecurity/uniffi-bindgen-go/?tab=readme-ov-file#how-to-install
  • Loading branch information
poljar committed Dec 6, 2024
1 parent c617b46 commit 4c4fc08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install_uniffi_bindgen_go.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash -e
set -o pipefail

git clone --depth 1 --branch main https://github.com/NordSecurity/uniffi-bindgen-go _temp_uniffi_bindgen_go;
(cd _temp_uniffi_bindgen_go && git submodule init && git submodule update && cargo install uniffi-bindgen-go --path ./bindgen);
rm -rf _temp_uniffi_bindgen_go;
cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go

0 comments on commit 4c4fc08

Please sign in to comment.