Skip to content

Document JSONNET_PATH default behavior#877

Open
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:docs-jsonnet-path-default
Open

Document JSONNET_PATH default behavior#877
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:docs-jsonnet-path-default

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

@Haihan-Jiang Haihan-Jiang commented May 26, 2026

What

Adds a short README section for import search paths. It makes the default behavior explicit: the command line tools do not add library search directories unless the user provides JSONNET_PATH or -J / --jpath, and imports are resolved relative to the importing file first.

The section also mirrors the existing CLI help for path separators and precedence so users can find it without running --help.

Fixes #659.

Testing

  • git diff --check -- README.md
  • go test ./...
  • checked the documented JSONNET_PATH / -J precedence with a temporary local import example

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 26, 2026 04:37
@Haihan-Jiang
Copy link
Copy Markdown
Author

This is ready for review from my side. Could someone take a look when convenient?

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.

Document the default JSONNET_PATH

1 participant