tonistiigi / xx

Dockerfile cross-compilation helpers
MIT License
338 stars 29 forks source link

tests: fixes for go tests #137

Closed tonistiigi closed 6 months ago

crazy-max commented 6 months ago

Small lint issue: https://github.com/tonistiigi/xx/actions/runs/7419055876/job/20187947405?pr=137#step:3:267

  > [shfmt-validate validate 1/1] RUN --mount=target=.   shfmt -ln posix -i 2 -ci -d . &&   for f in */test-*.bats; do shfmt -ln bats -i 2 -ci -d "$f" || return; done;:
0.176 --- src/test_helper.bash.orig
0.176 +++ src/test_helper.bash
0.176 @@ -80,7 +80,6 @@
0.176  
0.176  versionGTE() { test "$(printf '%s\n' "$@" | sort -V | tail -n 1)" = "$1"; }
0.176  
0.176 -
0.176  supportRiscVGo() {
0.176    versionGTE "$(go version | awk '{print $3}' | sed 's/^go//')" "1.14"
0.176  }