GithubHelp home page GithubHelp logo

Comments (3)

junkblocker avatar junkblocker commented on May 30, 2024

GO111MODULE=on go get -u ... causes the problem while GO111MODULE=auto does not.

from codesearch.

pcj avatar pcj commented on May 30, 2024

I'm still seeing this issue

For some reason:

$ cat ~/go/pkg/mod/github.com/junkblocker/codesearch\@v1.2.0/go.mod
module github.com/google/codesearch

go 1.13
$ rm -rf ~/go/pkg/mod/github.com/junkblocker
$ go get -u github.com/junkblocker/codesearch

Puts it back at 1.2.0.

$ GO111MODULE=auto go get github.com/junkblocker/codesearch
go: github.com/junkblocker/codesearch upgrade => v1.2.0
go get: github.com/junkblocker/[email protected]: parsing go.mod:
	module declares its path as: github.com/google/codesearch
	        but was required as: github.com/junkblocker/codesearch
$ GO111MODULE=auto go get github.com/junkblocker/[email protected]
go get github.com/junkblocker/[email protected]: github.com/junkblocker/[email protected]: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v5

Finally worked:

$ go get github.com/junkblocker/codesearch@4574186491dc220c3a124b8b01c7b13403680e6e

Perhaps the release version number v5.0.1 and corresponding lack of v5/ subdirectory throws this off? Not sure.

from codesearch.

junkblocker avatar junkblocker commented on May 30, 2024

This may be because go 1.16 has the new default GO111MOODULE=on . I've updated the README and updated the go.mod to include v6 as the version which hopefully helps.

from codesearch.

Related Issues (12)

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.