Skip to content

go-commands broken with go mod #54

@nabinno

Description

@nabinno

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. ryboe/q#55

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions