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

refactor: saner imports from TLA/std.extVars #183

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

CertainLach
Copy link
Owner

Replaces: #135

Fixes: #130

@@ -182,7 +182,7 @@ fn main_real(opts: Opts) -> Result<(), Error> {
let input_str = std::str::from_utf8(&input)?;
s.evaluate_snippet("<stdin>".to_owned(), input_str)?
} else {
s.import(&input)?
s.import(input.as_str())?
Copy link
Owner Author

@CertainLach CertainLach Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely correct, as now input file import also follows JPATH handling, which isn't behavior used by official jsonnet. JPATH handling should be disabled here.

To be split into resolve/import_resolved calls, with JPATH being applied in between those calls?

@CertainLach CertainLach self-assigned this Nov 24, 2024
@CertainLach CertainLach added bug Something isn't working enhancement New feature or request labels Nov 24, 2024
@CertainLach CertainLach added this to the v0.5.0 milestone Nov 24, 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 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JPATH not applied to --tla-code-file
1 participant