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

Config inject doesn't work when must_exist == true. #273

Closed
rcannood opened this issue Oct 26, 2022 · 1 comment
Closed

Config inject doesn't work when must_exist == true. #273

rcannood opened this issue Oct 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rcannood
Copy link
Member

Example config.vsh.yaml:

functionality:
  name: must_exist
  arguments:
    - name: "--input"
      type: file
      must_exist: true
      example: foo.txt
  resources:
    - type: r_script
      path: script.R

Running config inject results in:

$ viash config inject config.vsh.yaml
[error] File 'foo.txt' does not exist.

Normally this error would be expected when running viash run config.vsh.yaml --input non_exist.txt if non_exist.txt does not exist. In the context of a config inject, this error is not expected.

@rcannood rcannood added the bug Something isn't working label Oct 26, 2022
@rcannood rcannood self-assigned this Oct 26, 2022
rcannood added a commit that referenced this issue Oct 26, 2022
`config inject`: Doesn't work when `must_exist == true` (#273).
@rcannood
Copy link
Member Author

Solved by #274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant