koazee icon indicating copy to clipboard operation
koazee copied to clipboard

go-commands broken with go mod

Open nabinno opened this issue 5 years ago • 5 comments

Describe the bug When importing koazee in a project which uses go mod, any command run exits with an error.

To Reproduce Steps to reproduce the behavior:

  1. Create a dir with the following contents in main.go:
    package main
    
    import "github.com/wesovilabs/koazee"
    
    func main() {
    	t := []int{3, 2, 1}
    	n := koazee.
    		StreamOf(t).
    		Sort(func(x, y int) int {
    			if x <= y {
    				return -1
    			}
    			return 1
    		}).
    		Last().
    		Int()
    	fmt.Println(n)
    }
    
  2. Run go mod init
  3. Run go build or go mod why, and get the error:
    go: finding github.com/golangci/tools v0.0.0-20180902102414-2cefd77fef9b
    go: github.com/golangci/[email protected]: unknown revision 2cefd77fef9b
    go: error loading module requirements
    

Expected behavior Successful command execution without error.

Screenshots

Desktop (please complete the following information):

  • OS: Linux 4.19.57-microsoft-standard (WSL2) / Windows 10 Version 1903 Build Version 18963.1000
  • Browser: -
  • Version: -

Smartphone (please complete the following information):

Additional context There seems to be no revision 2cefd77fef9b of github.com/golangci/tools on which github.com/golangci/[email protected] depends.

Cf. https://github.com/y0ssar1an/q/issues/55

nabinno avatar Aug 23 '19 06:08 nabinno

I am facing the same problem

go: finding github.com/golangci/tools v0.0.0-20180902102414-2cefd77fef9b
go: github.com/golangci/[email protected]: unknown revision 2cefd77fef9b
go: error loading module requirements

glassonion1 avatar Aug 23 '19 11:08 glassonion1

I sent a pull request. Please validate it. https://github.com/wesovilabs/koazee/pull/55

glassonion1 avatar Aug 23 '19 11:08 glassonion1

Here's a new requirement error: go: github.com/wesovilabs/[email protected] requires github.com/golangci/[email protected] requires github.com/go-critic/[email protected]: invalid pseudo-version: does not match version-control timestamp (2018-11-06T15:09:47Z)

nadilas avatar Jan 05 '20 21:01 nadilas

please fix please

jan4984 avatar Mar 06 '20 06:03 jan4984

fixes were applied in v0.0.5

ivancorrales avatar Mar 06 '20 11:03 ivancorrales