Giter Club home page Giter Club logo

Comments (4)

junedev avatar junedev commented on July 19, 2024 1

I think I have the same issue. gocov test -mod=vendor ./... should not install dependencies but use the vendor folder instead. That does not work, dependencies are installed, probably because go list does not get the arguments as @jonesaaronj explained.

Update: My current workaround is to set GOFLAGS="-mod=vendor" as an environment variable. With that all go commands are forced to respect the vendored mode.

from gocov.

axw avatar axw commented on July 19, 2024

@jonesaaronj I'm sorry for not responding sooner, notifications were somehow disabled for me and I simply was not aware of this issue.

If you're still in need of this change, please feel free to send a PR and I'd be happy to review it. Otherwise, setting GOFLAGS seems like a reasonable workaround to me.

from gocov.

junedev avatar junedev commented on July 19, 2024

@axw @jonesaaronj As far as modules are concerned this issue was solved by the Go team. In Go 1.14 or higher all go commands default to respecting the vendor folder if there is one. See https://golang.org/doc/go1.14#go-command .
We were able to remove the GOFLAGS setting now as part of our Go update and it works just fine.

from gocov.

axw avatar axw commented on July 19, 2024

Good point, thanks @junedev!

I'll close this, happy to revisit if there's a still need.

from gocov.

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.