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

Resolve relative imports in config #7918

Closed
wants to merge 1 commit into from

Conversation

mattfbacon
Copy link
Contributor

Use the path of the parent config to resolve relative imports, rather than naively passing the import path to the OS, which results in reading the import relative to the working directory.

Use the path of the parent config to resolve relative imports,
rather than naively passing the import path to the OS,
which results in reading the import relative to the working directory.
let import_paths = match imports(config, recursion_limit) {
Ok(import_paths) => import_paths,
let import_paths = match imports(config, recursion_limit, parent_path) {
Ok(import_paths) => dbg!(import_paths),
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this dbg!?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry lol

Copy link
Member

@chrisduerr chrisduerr left a comment

Choose a reason for hiding this comment

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

Duplicate of #7690.

@chrisduerr chrisduerr closed this Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants