rs / zerolog

Zero Allocation JSON Logger
MIT License
10.62k stars 572 forks source link

cannot find package "." in #451

Closed jlpettersson closed 2 years ago

jlpettersson commented 2 years ago

When I build this (vendored) in a Go module project, I get this error and the build fails:

/app/vendor/github.com/rs/zerolog/console.go:16:2: cannot find package "." in:
    /app/vendor/github.com/mattn/go-colorable

Is this any issue with Go Modules configuration?

If I change from go 1.16 in my go.mod file, to go 1.18, then I get these errors:

/app/vendor/github.com/go-chi/httplog/config.go:9:2: cannot find package "." in:
    /app/vendor/github.com/rs/zerolog
/app/vendor/github.com/go-chi/httplog/config.go:10:2: cannot find package "." in:
    /app/vendor/github.com/rs/zerolog/log