You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated revive go install github.com/mgechev/revive@latest
I run it with the following flags & configuration file:
mkdir revive-old-gomod-bug
cd revive-old-gomod-bug
echo module example.com/old > go.mod
echo'package main; func main() {println("ok")}'> main.go
go run .# Output:# ok
revive ./...
# it panics
# no config
Expected behavior
It should not panic on outdated (but valid) projects.
Desktop (please complete the following information):
OS: Gentoo Linux
go version go1.23.2 linux/amd64
Additional context go mod tidy adds go directive to go.mod and this fixes the panic.
The text was updated successfully, but these errors were encountered:
Describe the bug
To Reproduce
Steps to reproduce the behavior:
go install github.com/mgechev/revive@latest
# no config
Expected behavior
It should not panic on outdated (but valid) projects.
Desktop (please complete the following information):
Additional context
go mod tidy
addsgo
directive togo.mod
and this fixes the panic.The text was updated successfully, but these errors were encountered: