passforios-gopenpgp/.github/test-suite/build_gosop.sh
Lukas Burkhalter 4e8fad59d6
CI: Update v2 branch CI to be on par with v3 (#286)
* ci: Update CI to be on par with v3

* ci: Update gosop branch for GopenPGP-v2
2024-08-27 13:15:12 +02:00

6 lines
283 B
Bash
Executable file

VERSION=$(awk '/^module github.com\/ProtonMail\/gopenpgp\/v[0-9]+/ {print $NF}' gopenpgp/go.mod | awk -F'v' '{print $2}')
cd gosop
echo "replace github.com/ProtonMail/gopenpgp/v${VERSION} => ../gopenpgp" >> go.mod
go get github.com/ProtonMail/gopenpgp/v${VERSION}/crypto
go build .