ribbybibby / ssl_exporter

Exports Prometheus metrics for TLS certificates
Apache License 2.0
504 stars 95 forks source link

Fix Dockerfile.local #105

Closed rouja closed 1 year ago

rouja commented 2 years ago

Hi,

This patch fix the error when we use Dockerfile.local to build the docker image :

/go/pkg/mod/k8s.io/client-go@v0.24.0/plugin/pkg/client/auth/exec/metrics.go:21:2: package io/fs is not in GOROOT (/usr/local/go/src/io/fs)
make: *** [Makefile:32: vet] Error 1
The command '/bin/sh -c cd /tmp/ssl_exporter &&     echo "ssl:*:100:ssl" > group &&     echo "ssl:*:100:100::/:/ssl_exporter" > passwd &&     make' returned a non-zero code: 2

Have a nice day

ribbybibby commented 1 year ago

Thanks for the PR @rouja. I ended up fixing this as part of #108, so going to close this PR.