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 error gracefully when meta.yml does not exist #114

Open
kyoDralliam opened this issue Feb 17, 2022 · 1 comment
Open

Comments

@kyoDralliam
Copy link

The generating scripts does not error when meta.yml does not exists but creates a 'Error: open meta.yml: no such file or directory.opam' file.

$ ~/(coq-community-template)> nix-shell -p mustache-go --run $TMP/generate.sh
this path will be fetched (1.10 MiB download, 3.83 MiB unpacked):
  /nix/store/ibnlmx9r9cxxhb2bvk7g3rhzhm2kc0dx-mustache-go-1.3.0
copying path '/nix/store/ibnlmx9r9cxxhb2bvk7g3rhzhm2kc0dx-mustache-go-1.3.0' from 'https://cache.nixos.org'...
Generating README.md...
mkdir: created directory '.circleci'
Generating .circleci/config.yml...
Generating Error: open meta.yml: no such file or directory.opam...
mkdir: created directory '.github'
mkdir: created directory '.github/workflows'
Generating .github/workflows/docker-action.yml...
Generating dune-project...
Generating theories/dune...
Generating Error: open meta.yml: no such file or directory.opam...
mkdir: created directory 'resources'
Generating resources/index.md...
Generating .github/workflows/nix-action.yml...
Generating .travis.yml...

$ ~/(coq-community-template) [1]> ls
 _CoqProject   'Error: open meta.yml: no such file or directory.opam'   Makefile       Makefile.coq.conf   resources          theories
 dune-project   LICENSE                                                 Makefile.coq   README.md

It may be more useful for the script to error and propose to create a basic meta.yml file to be completed.

@Zimmi48
Copy link
Member

Zimmi48 commented Feb 17, 2022

Related to #42.

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