hashicorp / go-immutable-radix

An immutable radix tree implementation in Golang
Mozilla Public License 2.0
999 stars 77 forks source link

iradix.go error: cannot use lru (type simplelru.LRUCache) as type *simplelru.LRU in assignment: need type assertion #17

Closed nikolas closed 6 years ago

nikolas commented 6 years ago

Hi, I'm trying to install hugo, and this package is giving me an error:

$ go get -v github.com/gohugoio/hugo                                                                                                                        
github.com/hashicorp/go-immutable-radix                                                                                                                                                   
# github.com/hashicorp/go-immutable-radix                                                                                                                                                 
../../../gocode/src/github.com/hashicorp/go-immutable-radix/iradix.go:139:14: cannot use lru (type simplelru.LRUCache) as type *simplelru.LRU in assignment: need type assertion

I'm using go 1.9.3 on Debian testing amd64.

dougcouvillion commented 6 years ago

I'm am having the same problem on code that worked fine 24 hours ago.

caseyw commented 6 years ago

Code no longer builds for a deployment. Not fun 👍

slaterx commented 6 years ago

Reproducible on 1.9.2. Was working fine yesterday.

dougcouvillion commented 6 years ago

I contacted the developer and he's fixed this issue!

kaedys commented 6 years ago

Fixed in upstream: https://github.com/hashicorp/golang-lru/commit/0fb14efe8c47ae851c0034ed7a448854d3d34cf3