You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hack/ensure-golangci-lint.sh
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,11 @@ get_binaries() {
103
103
linux/mips64le) BINARIES="golangci-lint" ;;
104
104
linux/ppc64le) BINARIES="golangci-lint" ;;
105
105
linux/s390x) BINARIES="golangci-lint" ;;
106
+
linux/riscv64) BINARIES="golangci-lint" ;;
107
+
netbsd/386) BINARIES="golangci-lint" ;;
108
+
netbsd/amd64) BINARIES="golangci-lint" ;;
109
+
netbsd/armv6) BINARIES="golangci-lint" ;;
110
+
netbsd/armv7) BINARIES="golangci-lint" ;;
106
111
windows/386) BINARIES="golangci-lint" ;;
107
112
windows/amd64) BINARIES="golangci-lint" ;;
108
113
windows/arm64) BINARIES="golangci-lint" ;;
@@ -209,9 +214,10 @@ log_crit() {
209
214
uname_os() {
210
215
os=$(uname -s | tr '[:upper:]''[:lower:]')
211
216
case"$os"in
212
-
cygwin_nt*) os="windows" ;;
217
+
msys*) os="windows" ;;
213
218
mingw*) os="windows" ;;
214
-
msys_nt*) os="windows" ;;
219
+
cygwin*) os="windows" ;;
220
+
win*) os="windows" ;;
215
221
esac
216
222
echo"$os"
217
223
}
@@ -244,7 +250,7 @@ uname_os_check() {
244
250
solaris) return 0 ;;
245
251
windows) return 0 ;;
246
252
esac
247
-
log_crit "uname_os_check '$(uname -s)' got converted to '$os' which is not a GOOS value. Please file bug at https://github.com/client9/shlib"
253
+
log_crit "uname_os_check '$(uname -s)' got converted to '$os' which is not a GOOS value."
248
254
return 1
249
255
}
250
256
uname_arch_check() {
@@ -263,9 +269,10 @@ uname_arch_check() {
263
269
mips64) return 0 ;;
264
270
mips64le) return 0 ;;
265
271
s390x) return 0 ;;
272
+
riscv64) return 0 ;;
266
273
amd64p32) return 0 ;;
267
274
esac
268
-
log_crit "uname_arch_check '$(uname -m)' got converted to '$arch' which is not a GOARCH value. Please file bug report at https://github.com/client9/shlib"
275
+
log_crit "uname_arch_check '$(uname -m)' got converted to '$arch' which is not a GOARCH value."
0 commit comments