mvisonneau / gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights
Apache License 2.0
1.27k stars 240 forks source link

Checksum mismatch in go.sum #14

Closed mmahut closed 5 years ago

mmahut commented 5 years ago

Looks like one of the imports have broken checksum.

panic: Error processing import path "github.com/hashicorp/vault/sdk": Bad SHA256 for repo https://github.com/hashicorp/vault with rev v0.1.11

mvisonneau commented 5 years ago

Which command/how did you do/use to end up with this error ?

mvisonneau commented 5 years ago

I haven't been able to reproduce, starting from a empty go environment 🤔

mmahut commented 5 years ago

I'm using vgo2nix to build it, does your build process checks the checksums?

Just try to run vgo2nix in the dir.

https://github.com/adisbladis/vgo2nix

mvisonneau commented 5 years ago

Indeed I seem to had quite some mess in the go.(mod|sum) files. Should be better with https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/commit/34034112c0b3df777ee1c85630dc2b589ff68d90

I wasn't able to test with your tool though, did not have time to investigate it further:

panic: Error processing import path "github.com/julienschmidt/httprouter": exec: "nix-prefetch-git": executable file not found in $PATH

goroutine 1 [running]:
main.main()

Let me know if it's better for you!

mvisonneau commented 5 years ago

Feel free to reopoen if it still doesn't work for you!

mmahut commented 5 years ago

It works, thanks!