Skip to content

Fix eager resolution of unitySymbolsDir in getProjectType#2130

Merged
priettt merged 1 commit intomainfrom
priettt/delayUnitySymbolsDirResolution
Apr 28, 2025
Merged

Fix eager resolution of unitySymbolsDir in getProjectType#2130
priettt merged 1 commit intomainfrom
priettt/delayUnitySymbolsDirResolution

Conversation

@priettt
Copy link
Contributor

@priettt priettt commented Apr 28, 2025

Goal

getProjectType was wrapped in a provider, without considering its dependency on unitySymbolsDir. As a result, when projectType was realized, it would try to realize unitySymbolsDir eagerly, potentially resolving it before it was available.

This change updates getProjectType to use unitySymbolsDir.map, wiring the dependency and ensuring that unitySymbolsDir is resolved only when needed.

@priettt priettt requested a review from a team as a code owner April 28, 2025 13:12
@github-actions
Copy link
Contributor

github-actions bot commented Apr 28, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Member

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM

@priettt priettt force-pushed the priettt/delayUnitySymbolsDirResolution branch from 480989c to 3cc9783 Compare April 28, 2025 15:43
@priettt priettt merged commit b321305 into main Apr 28, 2025
11 checks passed
@priettt priettt deleted the priettt/delayUnitySymbolsDirResolution branch April 28, 2025 16:37
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