nomad fmt -check
flag doesn't return error code
#15740
Labels
Projects
nomad fmt -check
flag doesn't return error code
#15740
I'm using nomad verision v1.4.2
$ nomad --version
Nomad v1.4.2 (039d70e)
https://developer.hashicorp.com/nomad/docs/commands/fmt#check
The documentation says it will not change and return value 1.
Observing the behaviour this doesn't look to be working.
I want to fail our CI process if the nomad fmt command detects any issue with the source file (HCL).
Currently the output of the $ nomad fmt -check command lists the file in the output and returns 0 value to the shell if issues with formatting detected.
$ nomad fmt -check http.nomad
http.nomad
$ echo $?
0
The text was updated successfully, but these errors were encountered: