riot
riot copied to clipboard
Windows setup
I tried to pull the dependency into my project, on my windows computer.
I obtained an error because riot pulls in go-systemd
, for some reason.
Why is systemd required? And is there a solution to avoid this error?
E:\Dev\git\artemix-search>go get github.com/go-ego/riot
go: finding github.com/go-ego/riot latest
go: downloading github.com/go-ego/riot v0.0.0-20191215221243-bdbc256e4cbd
go: extracting github.com/go-ego/riot v0.0.0-20191215221243-bdbc256e4cbd
go get: github.com/go-ego/[email protected] requires
github.com/coreos/[email protected]: invalid version: unknown revision 000000000000
I have the same error on my Mac computer.
I have the same error
I found the go mod replace document
cmd/go/alldocs.go
Exclude and replace apply only in the main module's go.mod and are ignored
in dependencies.
If we also use go mod in our project (import riot),riot/go.mod replace are ignored. so report error.
some solutions:
-
create a new project base on vendor/github.com/coreos/go-systemd , and update code go-systemd import path
-
upgrade go-systemd version lateast. remove repalce
@vcaesar Hope to have time to solve it as soon as possible
Thanks.
I have the same error on my computer.