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

Additional libraries are relative to file at 'resource-path', not to current folder #171

Closed
RutgerKe opened this issue Sep 27, 2021 · 0 comments · Fixed by #172
Closed

Comments

@RutgerKe
Copy link
Member

RutgerKe commented Sep 27, 2021

The additional libraries (like 'vendor' and 'lib') are relative to the target jsonnet file being run, as introduced here: #154.

However, this breaks running grizzly from another directory. For example, in this repo, this works:

cd examples && grr list grr.jsonnet

This does not

grr -J examples/vendor examples/grr.jsonnet

This also works, and probably shouldn't:

grr -J vendor examples/grr.jsonnet

because the 'vendor' folder is in 'examples'. The -J flag works fine with absolute paths.

Running jsonnet against the file does work in the first two cases listed, but not in the third. Can we make the -J flag be relative to the directory the command is ran from?

This is on master / v0.2.0-beta1

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

Successfully merging a pull request may close this issue.

1 participant