You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It is possible to provide a path to a validation script in the polywrap.test.yaml manifest. But the path is resolved relative to the current working directory of the user. This is unexpected behavior.
Expected behavior
Let's say I put the manifest and validator files together in a subfolder called workflows. The files are then located at workflows/polywrap.test.yaml and workflows/validator.cue.
Then I add the following line to the manifest:
validation: "./validator.cue"
Next I add a script to my package.json:
"workflow": "npx polywrap run -m ./workflows/polywrap.test.yaml"
I expect to be able to run the script from the root of my project. I will instead get an error saying the validator file cannot be found. The run command will look for the validator script in the project root instead of in the workflows folder.
The text was updated successfully, but these errors were encountered:
Describe the bug
It is possible to provide a path to a validation script in the
polywrap.test.yaml
manifest. But the path is resolved relative to the current working directory of the user. This is unexpected behavior.Expected behavior
Let's say I put the manifest and validator files together in a subfolder called
workflows
. The files are then located atworkflows/polywrap.test.yaml
andworkflows/validator.cue
.Then I add the following line to the manifest:
Next I add a script to my package.json:
I expect to be able to run the script from the root of my project. I will instead get an error saying the validator file cannot be found. The
run
command will look for the validator script in the project root instead of in theworkflows
folder.The text was updated successfully, but these errors were encountered: