CircleCI Ideas

Add `persist_to_workspace ` validation in the CLI command `circleci config validate`

I got the following error on CircleCi even though my `config.yml` was valid when I checked locally using the CLI command:
"circleci config validate"

In step 10 (persist_to_workspace): Paths must not contain the parent directory


It would be great to have caught this error early on, before pushing the code.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Feb 20 2019
  • Taking votes
CLI
  • Attach files
  • Admin
    Nathan Dintenfass commented
    20 Feb 23:57

    Unfortunately, I don't think we will be able to statically validate this -- it's a runtime consideration that would require either some awkward parsing and assumptions or a more formal syntax.

  • Admin
    Nathan Dintenfass commented
    21 Feb 00:15

    Actually, this particular error might be possible. Tracking this internally as CIRCLE-16417