Closed TheHolm closed 3 years ago
In order to build graphite-remote-adapter
, the prometheus' promu tool is used, and this one is not compatible with go 1.11. Building promu
is the problem here (it builds using fsnotify as a dependency, and this one doesn't interacts well in this environment:
go: gopkg.in/fsnotify.v1@v1.4.9: go.mod has non-....v1 module path "github.com/fsnotify/fsnotify" at revision v1.4.9
However, I was able to compile the project with the following patch:
diff --git a/Makefile b/Makefile
index 0f1c887..eb5f160 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ assets:
promu:
@GOOS=$(shell uname -s | tr A-Z a-z) \
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
- $(GO) get -u github.com/prometheus/promu
+ GO111MODULE=off $(GO) get -u github.com/prometheus/promu
clean:
[ -f ui/bindata.go ] && rm ui/bindata.go
Compiling with 'export GO111MODULE="on"'
I'm not sure what it fail to find. "github.com/op/go-logging" - is live.
go version go1.11.6 linux/amd64
UPD: I was able to complie previous version of code on same system: "git checkout -b test 515cb3c6b3b48c9eb00a5e1f7276eb29b9d07f84" It seems modules is pulling something not compliable.