easybuilders / easybuild

EasyBuild - building software with ease
http://easybuild.io
GNU General Public License v2.0
456 stars 142 forks source link

Fix indentation in Easystack examples #855

Closed bedroge closed 1 year ago

bedroge commented 1 year ago

The examples with the additional options don't work, e.g. the first one from https://docs.easybuild.io/en/latest/Easystack-files.html#combining-command-line-options-with-options-in-an-easystack-file results in:

ERROR: Failed to parse easystack file: expected a dictionary with one key (the EasyConfig name), instead found keys: PyTorch-1.12.0-foss-2022a-CUDA-11.7.0.eb, options, see https://docs.easybuild.io/en/latest/Easystack-files.html for documentation.

Looking at an example from the tests at https://github.com/easybuilders/easybuild-framework/blob/develop/test/framework/easystacks/test_easystack_easyconfigs_opts.yaml, the additional options need more indentation, and the following does indeed work:

easyconfigs:
  - PyTorch-1.12.0-foss-2022a-CUDA-11.7.0.eb:
      options:
        from-pr: 15924
        debug: True
  - OpenFOAM-v2206-foss-2022a.eb: