mirror of https://github.com/ethereum/go-ethereum
Makefile: clean go build cache (#17079)
parent
894022a3d5
commit
ae674a3660
@ -0,0 +1,10 @@ |
||||
#!/bin/sh |
||||
|
||||
function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; } |
||||
|
||||
golang_version=$(go version |cut -d' ' -f3 |sed 's/go//') |
||||
|
||||
# Clean go build cache when go version is greater than or equal to 1.10 |
||||
if !(version_gt 1.10 $golang_version); then |
||||
go clean -cache |
||||
fi |
Loading…
Reference in new issue