We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f324fe commit 2ebd0d7Copy full SHA for 2ebd0d7
build-without-openssl.bash
@@ -2,4 +2,4 @@
2
3
cd "$(dirname "$0")"
4
5
-CGO_ENABLED=0 source ./build.bash -tags without_openssl
+CGO_ENABLED=0 source ./build.bash
test-without-openssl.bash
-./test.bash -tags without_openssl "$@"
+CGO_ENABLED=0 ./test.bash "$@"
test.bash
@@ -54,8 +54,8 @@ unmount_leftovers || true
54
echo "$MYNAME: build-without-openssl.bash failed"
55
exit 1
56
}
57
-# Don't build with openssl if we were passed "-tags without_openssl"
58
-if [[ "$*" != *without_openssl* ]] ; then
+# Only build with openssl if cgo is enabled
+if [[ $(go env CGO_ENABLED) -eq 1 ]] ; then
59
./build.bash
60
fi
61
0 commit comments