Debian Codegraph @

.github/test-suite/build_gosop.sh

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