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

Warn when referencing nonexistent Track() #59

Open
apotonick opened this issue Oct 19, 2022 · 1 comment
Open

Warn when referencing nonexistent Track() #59

apotonick opened this issue Oct 19, 2022 · 1 comment

Comments

@apotonick
Copy link
Member

Given that the :skip track doesn't exist, this will be wired to :success.

step :_destroy?,
              Output(:success) => Track(:skip)

We need the ability to reference a track before it "got created" due to the way Ruby and DSLs (usually) work. However, if we only somehow could warn the user they're referencing a track that's nonexistent, that'd be cool. I wouldn't know how, though, unless we switch to a block-style DSL where we know when exactly a DSL use is finished and can "finalize" the data structure created from it.

@apotonick
Copy link
Member Author

This would also work with Subprocess(Validate, strict: true): if a unknown track from Validate is referenced, this should break.

Problem is, we never know when we're finished collecting steps through the DSL.

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

1 participant