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
It's not a big problem, but it seems like the command --version only works from a folder where there's a config.yml file (even empty).
# Show folder content
root@prometheus:/tmp/json_exporter-0.3.0.darwin-amd64# ls
LICENSE
json_exporter
# Try to show the version
root@prometheus:/tmp/json_exporter-0.3.0.darwin-amd64# ./json_exporter --version
json_exporter: error: path 'config.yml' does not exist, try --help
# Create an empty config.yml file
root@prometheus:/tmp/json_exporter-0.3.0.darwin-amd64# touch config.yml
# Try to show the version
root@prometheus:/tmp/json_exporter-0.3.0.darwin-amd64# ./json_exporter --version
json_exporter, version 0.3.0 (branch: HEAD, revision: ae58e1f3e7161fb2a2a90a16998db0c072e2d532)
build user: root@46db6777a64c
build date: 20210214-02:17:04
go version: go1.15.8
platform: linux/amd64
The text was updated successfully, but these errors were encountered:
It's not a big problem, but it seems like the command
--version
only works from a folder where there's aconfig.yml
file (even empty).The text was updated successfully, but these errors were encountered: