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

loading: fix two bugs in project file deps parsing + tests #26580

Merged
merged 2 commits into from
Mar 23, 2018

Conversation

StefanKarpinski
Copy link
Sponsor Member

@StefanKarpinski StefanKarpinski commented Mar 22, 2018

With a fix for Pkg3 precompile breakage thrown in for kicks. This is my alternative to #26570.

@KristofferC
Copy link
Sponsor Member

My thought in #26570 was that it is unnecessary to parse the whole file if you found the name and a new UUID but it probably doesn't matter in practice.

@StefanKarpinski
Copy link
Sponsor Member Author

That's true but it only continues parsing until it hits a section or the file ends, so it at most parses the top-matter of the project file in that case. There are other cases where it could exit early when it doesn't find a name at the root or in the deps and there are more sections, but as you say, it probably doesn't matter since these files are not expected to be large.

@StefanKarpinski
Copy link
Sponsor Member Author

The important addition here is not even the bug fixes, it's the tests 😁

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.

2 participants