Skip to content

Commit 36dcad3

Browse files
committed
golang: add version check override script
Only check versin for the compielr package. Signed-off-by: George Sapkin <george@sapk.in> (cherry picked from commit 021d62d)
1 parent 1e518ea commit 36dcad3

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
#
3+
# SPDX-License-Identifier: GPL-2.0-only
4+
5+
# shellckeck shell=busybox
6+
7+
case "$PKG_NAME" in
8+
golang?.??-doc|\
9+
golang?.??-misc|\
10+
golang?.??-src|\
11+
golang?.??-tests)
12+
exit 0
13+
;;
14+
15+
golang?.??)
16+
go version | grep -F " go$PKG_VERSION "
17+
;;
18+
19+
*)
20+
echo "Untested package: $PKG_NAME" >&2
21+
exit 1
22+
;;
23+
esac

lang/golang/golang1.26/test.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ case "$1" in
66
golang*doc|golang*misc|golang*src|golang*tests) exit ;;
77
esac
88

9-
go version | grep -F " go$PKG_VERSION "
10-
119
cat <<'EOF' > hello.go
1210
package main
1311

0 commit comments

Comments
 (0)