iris
iris copied to clipboard
Problem with Snappy package dependency
When upgrade Iris to latest version I got the following errors which prevent me from compiling the project:
github.com/kataras/iris/v12 imports
github.com/kataras/iris/v12/context imports
github.com/klauspost/compress/snappy: cannot find module providing package github.com/klauspost/compress/snappy
As I check the downstream project klauspost/compress it looks like they decided to remove snappy package.
Apr 14, 2021 (v1.12.1): snappy package removed. Upstream added as dependency.
This doesn't seem to affect normal use. The master branch of iris still relies on the v1.11.7 github.com/klauspost/compress
This does.
One can no longer install iris cleanly.
go: finding module for package github.com/klauspost/compress/snappy
../../../../pkg/mod/github.com/kataras/iris/[email protected]/context/compress.go:14:2: module github.com/klauspost/compress@latest found (v1.12.1), but does not contain package github.com/klauspost/compress/snappy
maybe you can have a try go get github.com/kataras/iris/v12@master
Downgrading compress to the lower version helped me
go get github.com/klauspost/compress/[email protected]
I got the same question because I refered two version of iris in my project. So I corrected it. The problem was gone.