Skip to content

Fix eager resolution of unitySymbolsDir in shared object file provider#2132

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

Fix eager resolution of unitySymbolsDir in shared object file provider#2132
priettt merged 1 commit intomainfrom
priettt/fixUnitySharedObjectFileProvider

Conversation

@priettt
Copy link
Contributor

@priettt priettt commented Apr 28, 2025

Goal

getUnitySharedObjectFiles was accessing unitySymbolsDir (using orNull) too early, which could mess with the build or with configuration cache if the symbols directory isn't ready yet.
This change switches to using flatMap so unitySymbolsDir is resolved lazily, only when needed.

Also removed a test that didn't make sense, as the provider we receive can't be null.

@priettt priettt requested a review from a team as a code owner April 28, 2025 14:23
@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/fixUnitySharedObjectFileProvider branch from 26968c9 to 79aa685 Compare April 28, 2025 14:55
@priettt priettt force-pushed the priettt/fixUnitySharedObjectFileProvider branch from 79aa685 to 0aec9e5 Compare April 28, 2025 16:37
@priettt priettt merged commit 484264c into main Apr 28, 2025
11 checks passed
@priettt priettt deleted the priettt/fixUnitySharedObjectFileProvider branch April 28, 2025 17:38
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