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(tool/imports): add path info to error message #518

Merged
merged 4 commits into from
Feb 26, 2021

Conversation

malcolmholmes
Copy link
Contributor

tk tool imports is a really useful tool for identify imports within a Jsonnet codebase.

However, if you use it with a complex codebase, it can report "couldn't load foo/bar.libsonnet" without telling you where it was when it failed. This very minor tweak gives direct feedback as to where the error is facilitating an easy and immediate fix.

pkg/jsonnet/imports.go Outdated Show resolved Hide resolved
@sh0rez sh0rez changed the title Verbose tool imports fix(tool/imports): add path info to error message Feb 22, 2021
Copy link
Member

@Duologic Duologic left a comment

Choose a reason for hiding this comment

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

Considering you take up @sh0rez suggestions.

@sh0rez sh0rez merged commit 6cdc6cf into master Feb 26, 2021
@sh0rez sh0rez deleted the verbose-tool-imports branch February 26, 2021 20:55
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 this pull request may close these issues.

3 participants