You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of M-Lab's Dockerfiles have a line like the following to include the git commit of the repo in the software they build:
RUN go get -v -ldflags "-X github.com/m-lab/go/prometheusx.GitShortCommit=$(git log -1 --format=%h)" .
This has the undesired side-effect of pulling in the prometheusx package for software that has nothing to do with Prometheus. Moreover, creating an application that uses any package that includes prometheusx results in polluting the flags when printing its help message. Below is an example:
Many of M-Lab's
Dockerfile
s have a line like the following to include the git commit of the repo in the software they build:This has the undesired side-effect of pulling in the
prometheusx
package for software that has nothing to do with Prometheus. Moreover, creating an application that uses any package that includesprometheusx
results in polluting the flags when printing its help message. Below is an example:The text was updated successfully, but these errors were encountered: