koazee
koazee copied to clipboard
go-commands broken with go mod
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:
- 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) }
- Run
go mod init
- Run
go build
orgo 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
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
I sent a pull request. Please validate it. https://github.com/wesovilabs/koazee/pull/55
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)
please fix please
fixes were applied in v0.0.5