File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ if [ "$REMOTE_VERSION" = "null" ]; then
13
13
CN_VERSION=$( go mod edit -json | jq -c -r ' .Replace | .[] | select(.Old.Path | contains("github.com/haproxytech/client-native/v2")) | .New.Path' 2> /dev/null) || " "
14
14
fi
15
15
# if hash is to short take all of it (example v1.0.0-dev1)
16
- [ " ${# CN_VERSION} " -gt 0 ] && [ " ${# CN_VERSION} " -lt 4 ] && CN_VERSION=$( go mod edit -json | jq -c -r ' .Replace | .[] | select(.Old.Path | contains("github.com/haproxytech/client-native/v2")) | .New.Version' )
16
+ [ " ${# CN_VERSION} " -gt 0 ] && [ " ${# CN_VERSION} " -lt 6 ] && CN_VERSION=$( go mod edit -json | jq -c -r ' .Replace | .[] | select(.Old.Path | contains("github.com/haproxytech/client-native/v2")) | .New.Version' )
17
17
# check if version is there, if not, use one from require
18
18
[ -z " $CN_VERSION " ] && CN_VERSION=$( go mod edit -json | jq -c -r ' .Require | .[] | select(.Path | contains("github.com/haproxytech/client-native/v2")) | .Version' 2> /dev/null | awk -F" -" ' {print $NF}' )
19
19
echo " ---> version of client native used: $CN_VERSION "
You can’t perform that action at this time.
0 commit comments