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

2278 path dependencies module resolution bug #2334

Closed
wants to merge 0 commits into from
Closed

2278 path dependencies module resolution bug #2334

wants to merge 0 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 12, 2023

Fixes #2278
When building a project, we must check that a manifest file already exists. If the manifest exists, then we must check that it is up to date. It is at this stage that the issue occurs. When verifying the manifest, we currently only check for changes in the root config file. This does not account for changes in the config files of local packages that occur after the root manifest is generated. To resolve this, I've added a check for changes in local package config files.

@ghost ghost marked this pull request as ready for review September 17, 2023 21:38
@ghost ghost marked this pull request as draft September 17, 2023 21:55
@ghost ghost marked this pull request as ready for review September 17, 2023 22:26
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you for this! I've added some questions inline.

};
}
Ok(dependencies)
}
Copy link
Member

Choose a reason for hiding this comment

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

I think this will fail for nested path deps, as the path will be relative to the dep and not the root of the project.

@@ -500,9 +500,11 @@ fn get_manifest<Telem: Telemetry>(

let manifest = read_manifest_from_disc(paths)?;

let dependencies = get_all_dependencies(config)?;
Copy link
Member

Choose a reason for hiding this comment

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

This detection is being done at the very edge of the system, when the CLI starts. It works for the CLI build tool as it always starts from scratch, but the problem will still exist for the language server which is a long-running process. We'll need to determine an approach that works in that case also.

@ghost ghost marked this pull request as draft October 8, 2023 02:45
@ghost ghost closed this Oct 8, 2023
This pull request was closed.
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.

Path dependencies module resolution bug
1 participant