whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# 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'
|
||||
|
||||
exec gofumpt toolchain-unstable/a.go
|
||||
stdout '//gofumpt:diagnose.* -lang=v1.21'
|
||||
|
||||
-- toolchain-stable/go.mod --
|
||||
module a
|
||||
|
||||
go 1.21.2
|
||||
-- toolchain-stable/a.go --
|
||||
package a
|
||||
|
||||
//gofumpt:diagnose
|
||||
|
||||
-- toolchain-unstable/go.mod --
|
||||
module a
|
||||
|
||||
go 1.21rc3
|
||||
-- toolchain-unstable/a.go --
|
||||
package a
|
||||
|
||||
//gofumpt:diagnose
|
||||
Reference in New Issue
Block a user