smokescreen
smokescreen copied to clipboard
Sample config returns errors
Using a clean installation and without touching the sample configuration file, the following error occurs:
$ git clone [email protected]:stripe/smokescreen.git
Cloning into 'smokescreen'...
remote: Enumerating objects: 9067, done.
remote: Counting objects: 100% (1744/1744), done.
remote: Compressing objects: 100% (955/955), done.
remote: Total 9067 (delta 947), reused 1123 (delta 711), pack-reused 7323
Receiving objects: 100% (9067/9067), 21.03 MiB | 10.16 MiB/s, done.
Resolving deltas: 100% (4297/4297), done.
$ cd smokescreen
$ nano smokescreen.yaml
$ go run . --config-file smokescreen.yaml
{
"level":"fatal",
"msg":"Could not create configuration: Couldn't load file \"smokescreen.yaml\" specified by --config-file: yaml: unmarshal errors:\n line 2: field version not found in type smokescreen.yamlConfig\n line 3: field services not found in type smokescreen.yamlConfig\n line 28: field default not found in type smokescreen.yamlConfig",
"time":"2024-05-28T16:03:05.811872+02:00"
}
exit status 1
Running version: go version go1.22.2 darwin/amd64
(exact same result for go version go1.20.14 darwin/amd64
)