Giter VIP home page Giter VIP logo

Comments (7)

jefferai avatar jefferai commented on June 27, 2024

What error are you seeing? What specific go version?

from golang-lru.

cep21 avatar cep21 commented on June 27, 2024

You have go 1.12 in your mod file.

$ make build
486go build -mod=readonly ./...
487go build github.com/hashicorp/golang-lru/simplelru: module requires Go 1.12
488make: *** [build] Error 1

from golang-lru.

cep21 avatar cep21 commented on June 27, 2024

This is go 1.11

from golang-lru.

jefferai avatar jefferai commented on June 27, 2024

What specific go version? It builds just fine for me using go 1.11.12.

from golang-lru.

cep21 avatar cep21 commented on June 27, 2024

Did you use it as a dependency or the module directly? Try it as a dependency.

https://travis-ci.org/cep21/cwopencensusexporter/builds/565712108
https://travis-ci.org/cep21/cwopencensusexporter/jobs/565712110

from golang-lru.

jefferai avatar jefferai commented on June 27, 2024

This works fine with 1.11.12:

$ cat go.mod 
module lrutest

require github.com/hashicorp/golang-lru v0.5.3

$ cat main.go 
package main

import lru "github.com/hashicorp/golang-lru/simplelru"

func main() {
        lru.NewLRU(128, nil)
}

$ go1.11.12 build

from golang-lru.

jefferai avatar jefferai commented on June 27, 2024

I believe this is because your Travis build is using go1.11.0. This will almost certainly not work as its module support is highly broken. Please update your Travis config to the latest 1.11.x version of Go (currently 1.11.12).

from golang-lru.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.