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.

  • Felipe
  • Feb 20 2019
  • Taking votes
  • Attach files
  • Nathan Dintenfass commented
    February 20, 2019 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.

  • Nathan Dintenfass commented
    February 21, 2019 00:15

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