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

[BUG] viash ns * inside a subdirectory doesn't always work #746

Open
2 tasks done
rcannood opened this issue Jul 11, 2024 · 0 comments
Open
2 tasks done

[BUG] viash ns * inside a subdirectory doesn't always work #746

rcannood opened this issue Jul 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rcannood
Copy link
Member

What happened?

viash ns * inside a subdirectory doesn't work when the project config doesn't list the source directory.

Steps to reproduce

Clone biobox:

git clone [email protected]:viash-hub/biobox.git
cd biobox

Remove the source field from the _viash.yaml file (there isn't one, but just in case):

yq eval 'del(.source)' -i _viash.yaml

When inside a subdir, viash ns isn't able to find the src relative to the project config:

cd src
viash ns build
viash: src (No such file or directory)

Adding a source field in the project config resolves the issue:

yq eval '.source = "src"' -i ../_viash.yaml
viash ns build # works

Expected behavior

I expect viash to be able to resolve the src relative to the project config

Relevant log output

No response

Version

Viash 0.9.0-RC6

Possible solution

No response

Confirmation

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided clear and concise information about the bug.

Additional context

No response

@rcannood rcannood added the bug Something isn't working label Jul 11, 2024
@rcannood rcannood changed the title [BUG] viash ns * inside a subdirectory doesn't alwas work [BUG] viash ns * inside a subdirectory doesn't always work Jul 11, 2024
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