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

YAML generation for init inserts tabs for lines 3 and 5 #37

Open
digitalsleuth opened this issue Feb 2, 2023 · 1 comment
Open

YAML generation for init inserts tabs for lines 3 and 5 #37

digitalsleuth opened this issue Feb 2, 2023 · 1 comment

Comments

@digitalsleuth
Copy link

When using cast to generate a .cast.yml file, the file is generated with tabs on lines 3 and 5 (comment lines)
If an end user simply deletes only the visible text on these lines and not the tabs, then uses the release option to generate a release, cast will fail with: FATA[0000] unable to load config: yaml: line 3: found character that cannot start any token. Additionally, if the end user opts to leave the commented lines in, the same issue will arise.

While this is a very minor issue, it does induce a potential future error. Replacing the tab with spaces will ensure this doesn't occur in the future, whether the end user thinks to replace the entire line or not.

@ekristen
Copy link
Owner

ekristen commented Feb 2, 2023

Weird. Easy enough fix.

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

2 participants