From ddd4dc460c4eda67953793a69d0caa3512b61609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 27 Dec 2023 23:55:55 +0100 Subject: [PATCH] skip gomod.txtar testscript on Go 1.20 I had forgotten that Go versions before 1.21 cannot parse these files. CI with Go 1.20 reminded me. --- testdata/script/gomod.txtar | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testdata/script/gomod.txtar b/testdata/script/gomod.txtar index 90f13a8..faf86da 100644 --- a/testdata/script/gomod.txtar +++ b/testdata/script/gomod.txtar @@ -1,5 +1,7 @@ # Test various edge cases with go.mod files. +[!go1.21] skip 'Go 1.20 or older cannot parse these go.mod files' + exec gofumpt toolchain-stable/a.go stdout '//gofumpt:diagnose.* -lang=v1.21'