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

fix(jsonnet): Provide full filename #368

Merged
merged 2 commits into from
Sep 2, 2020
Merged

fix(jsonnet): Provide full filename #368

merged 2 commits into from
Sep 2, 2020

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Sep 1, 2020

Now invokes the evaluation with the absolute filename of main.jsonnet.

Without doing so, this had the effect that std.thisFile reported literally main.jsonnet, which renders this value unusable to detect the surroundings of that file.

Removed pkg/kubernetes/data_test.go because this file was orphaned (forget while moving the functionality to pkg/process, replacement is pkg/process/data_test.go)

Now invokes the evalutation with the absolute filename `main.jsonnet`.

Without doing so, this had the effect that `std.thisFile` reported
literally `main.jsonnet`, which renders it unusable to detect the
surroundings of that file.
@sh0rez sh0rez added kind/bug Something isn't working component/jsonnet Everything regarding the jsonnet language labels Sep 1, 2020
Copy link
Member

@jdbaldry jdbaldry left a comment

Choose a reason for hiding this comment

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

LGTM

@sh0rez sh0rez merged commit d60b4a2 into master Sep 2, 2020
@sh0rez sh0rez deleted the absfilename branch September 2, 2020 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/jsonnet Everything regarding the jsonnet language kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants