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

generate.sh should be robust to incorrect YAML files. #42

Open
Zimmi48 opened this issue May 28, 2020 · 0 comments
Open

generate.sh should be robust to incorrect YAML files. #42

Zimmi48 opened this issue May 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Zimmi48
Copy link
Member

Zimmi48 commented May 28, 2020

Incorrect YAML files can lead to hard to decipher errors, or even completely strange behavior.
For instance, a meta.yml which contained the following incorrect part:

dependencies:
- opam:
    name: coq-coqeal
    version: '{>= "1.0.3"}'
    name: coq-mathcomp-real-closed
    version: '{>= "1.0.4"}'
    name"coq-mathcomp-bigenough '{>= "1.0.0"}'

(https://github.com/math-comp/apery/blob/57704e1e97be40be9ffc3ae77b2a894200804f87/meta.yml#L58-L64)

led, when running generate.sh (with the mustache-go implementation) to:

mkdir: création du répertoire '.circleci'
Generating .circleci/config.yml...
mkdir: création du répertoire '.github'
mkdir: création du répertoire '.github/workflows'
Generating .github/workflows/coq-action.yml...
Generating Error: yaml: line 64: could not find expected ':'.opam...
Generating default.nix...
Generating Error: yaml: line 64: could not find expected ':'.opam...
Generating index.md...
Generating README.md...
Generating .travis.yml...

and to the creation of 4 files (default.nix, index.md, README.md and... Error: yaml: line 64: could not find expected ':'.opam") which all contained:

Error: yaml: line 64: could not find expected ':'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants