Skip to content

Fix orphaned Unity meta files during generated code cleanup - #4771

Merged
mhijaziB merged 4 commits into
mainfrom
fix/cli-remove-empty-unity-directories
Jul 27, 2026
Merged

Fix orphaned Unity meta files during generated code cleanup#4771
mhijaziB merged 4 commits into
mainfrom
fix/cli-remove-empty-unity-directories

Conversation

@mhijaziB

@mhijaziB mhijaziB commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Brief Description

The fix has been implemented after noticing warning existing meta files for empty directories in ckages/com.beamable/Common/Runtime/BeamCli/Contracts/BundlesService whenever a unity project is opened after V6 RC 7.

Removes empty directories and their .meta files after Beamable.Tools cleans generated Unity source. Directories containing Unity-owned files such as .asmdef remain untouched.
Added tests covering the BundlesService.meta regression and directory preservation.

Updated PR builds to install the CLI version pinned by the Unity SDK, preventing generated-code mismatches with the locally built CLI.

Validation

Focused tests pass
CLI solution builds with 0 errors

Checklist

  • Have you added appropriate text to the CHANGELOG.md files?

Add those to list or remove the list below altogether:

Notes

When you are merging a feature branch into main, please squash merge and make sure the final commit contains any relevent JIRA ticket number. If you are merging from main to staging, or staging to production, please use a regular merge commit.

Does this introduce tech-debt? If so, have you added an entry to the Tech-debt document?

@mhijaziB mhijaziB added this to the Unity 6.0.0 milestone Jul 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lightbeam link

@mhijaziB

Copy link
Copy Markdown
Contributor Author

Since @allister-beamable & @Leinnan are responsible for building the releases, I will wait for one of their reviews before merging.

@github-actions

Copy link
Copy Markdown
Contributor

Lightbeam link

@allister-beamable allister-beamable left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cleaner is better.

@mhijaziB
mhijaziB merged commit 10084ca into main Jul 27, 2026
4 of 19 checks passed
@mhijaziB
mhijaziB deleted the fix/cli-remove-empty-unity-directories branch July 27, 2026 14:12
allister-beamable added a commit that referenced this pull request Jul 28, 2026
…build

The 6.0.0 build pins CLI 7.2.2, which predates bundles, so
download-all-nuget-packages strips BundleTagInfo.cs from Common/Runtime and
leaves the committed BundlesService.meta with no asset -- Unity then warns on
every asset refresh and cannot clean it, since the package cache is read-only.
#4771 fixes the cleanup CLI-side but ships in 7.3.0, which this build does not
pin, so remove the files instead. They return automatically once the pin moves
to a bundle-containing nuget.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

3 participants