Skip to content

Commit

Permalink
skip gomod.txtar testscript on Go 1.20
Browse files Browse the repository at this point in the history
I had forgotten that Go versions before 1.21 cannot parse these files.
CI with Go 1.20 reminded me.
  • Loading branch information
mvdan committed Dec 27, 2023
1 parent 5249497 commit ddd4dc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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'

Expand Down

0 comments on commit ddd4dc4

Please sign in to comment.