GithubHelp home page GithubHelp logo

Failed to go-get v2 about cc HOT 5 OPEN

hajimehoshi avatar hajimehoshi commented on August 17, 2024
Failed to go-get v2

from cc.

Comments (5)

cznic avatar cznic commented on August 17, 2024

Just a theory, but maybe the final /v2 in an url that has no .mod file is not supported by Go 1.11.

I hoped that I can just ignore modules, but frankly, I am starting to hate them.

Anyway, if you know a solution that can keep me ignoring modules and at the same time suport people that want or need to use them, please advise, thank you.

from cc.

cznic avatar cznic commented on August 17, 2024

s/url/import path/ ofc.

from cc.

kortschak avatar kortschak commented on August 17, 2024

Just a theory, but maybe the final /v2 in an url that has no .mod file is not supported by Go 1.11.

This is indeed true as far as I'm aware.

Anyway, if you know a solution that can keep me ignoring modules and at the same time suport people that want or need to use them, please advise, thank you.

Unfortunately, I don't think this is tenable in the longer term. You can say use GO111MODULE=off or only build in $GOPATH, but these will eventually not work AFAIU.

I too am still coming to terms with these things.

from cc.

hajimehoshi avatar hajimehoshi commented on August 17, 2024

Anyway, if you know a solution that can keep me ignoring modules and at the same time suport people that want or need to use them, please advise, thank you.

I'm afraid I don't have a good idea. I was wondering why you don't want to put go.mod.

from cc.

cznic avatar cznic commented on August 17, 2024

I'm not against a .mod file in the repository. I just want to keep working solely inside my dead simple GOPATH="$HOME" and ignore modules. I'm not against the feature, obviously there are entities needing it for legitimate reasons. But I don't get why it has to affect those who don't need it.

Can I do go mod init in the root of this repository, git {add,commit,push} the go.mod file, list it in my local .gitignore, delete my local copy of go.mod and be happy?

Would that provide you and others with module support and let me keep my current workflow and allow me to somehow ignore modules?

cc @kortschak, your insights are very welcome, thank you.

from cc.

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.