Skip to content

Follow up the project discovery change of #4421 - #4468

Merged
fpellet merged 4 commits into
masterfrom
fix/project-discovery-followups
Oct 31, 2026
Merged

fpellet merged 4 commits into
masterfrom
fix/project-discovery-followups

Conversation

@fpellet

@fpellet fpellet commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Follow-up of #4421, which stopped project discovery from descending into the folders that are links or whose name starts with a dot, to fix the endless search on a cyclic link. This PR cleans up the code around that rule and documents what it changes for users.

Code

  • Shared dot folder rule: Utils.isDotDirectory is the rule isSkippedSearchDirectory and NuGetConvert.findLinkedFolders now share, so the convert-from-nuget warnings about linked folders keep matching the folders the searches skip. It uses the ordinal StartsWith '.' instead of the culture-sensitive string overload.
  • Comments: the comments of isSkippedSearchDirectory and SearchAllProjectRelatedFiles say which folders each search skips. Beyond the shared rule, project discovery also skips packages and node_modules, the paket-files folder of the root, the folders with their own paket.dependencies, and the Linux system roots when searching from /.
  • Dead code: NugetEnv.readNuGetPackages no longer filters out the projects below a link. FindAllProjects never descends into a linked folder, which read already warns about, so only the project files that are links are left to skip. The NugetConvertSpecs tests on linked folders and cycles cover it.

Documentation

  • references-files.md: the Location section says that Paket does not look into the dot folders or the links, and lists the commands that leave their projects out.
  • template-files.md: paket pack still finds the templates of these folders, as TemplateFile.FindTemplateFiles follows links and enters dot folders, but not their projects. A project template there is packed without the assemblies and dependencies of its project, and pack fails when the folder holds more than one project. A cyclic link can also keep that search from finishing.
  • Release notes: the breaking entry of Fix infinite recursion in project discovery on symlink cycles #4421 describes these effects, with the full list of commands. The fix of the endless search gets its own entry, crediting @michaelglass.

Aligning FindTemplateFiles, and the obj cleanup of paket install, which also follows links, on isSkippedSearchDirectory is left for a separate PR.

@fpellet
fpellet merged commit d26433a into master Oct 31, 2026
12 checks passed
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.

1 participant