Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample config returns errors #221

Open
sidvanvliet opened this issue May 28, 2024 · 0 comments
Open

Sample config returns errors #221

sidvanvliet opened this issue May 28, 2024 · 0 comments

Comments

@sidvanvliet
Copy link

sidvanvliet commented May 28, 2024

Using a clean installation and without touching the sample configuration file, the following error occurs:

$ git clone org-856813@github.com: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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant