iris icon indicating copy to clipboard operation
iris copied to clipboard

Problem with Snappy package dependency

Open duclm2609 opened this issue 4 years ago • 5 comments

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.

duclm2609 avatar Apr 17 '21 14:04 duclm2609

This doesn't seem to affect normal use. The master branch of iris still relies on the v1.11.7 github.com/klauspost/compress

tuhao1020 avatar Apr 21 '21 15:04 tuhao1020

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

AlbinoGeek avatar Apr 26 '21 03:04 AlbinoGeek

maybe you can have a try go get github.com/kataras/iris/v12@master

tuhao1020 avatar Apr 28 '21 08:04 tuhao1020

Downgrading compress to the lower version helped me

go get github.com/klauspost/compress/[email protected]

Kukunin avatar Apr 29 '21 05:04 Kukunin

I got the same question because I refered two version of iris in my project. So I corrected it. The problem was gone.

vannnnish avatar Jul 01 '21 09:07 vannnnish