Skip to content

fix: Added build cache path for symbol upload when targeting Switch#2580

Open
bitsandfoxes wants to merge 3 commits intomainfrom
fix/switch-upload
Open

fix: Added build cache path for symbol upload when targeting Switch#2580
bitsandfoxes wants to merge 3 commits intomainfrom
fix/switch-upload

Conversation

@bitsandfoxes
Copy link
Contributor

When exporting an actual rom the assemblies are bundled inside the package, causing the symbol upload to fail.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • Added build cache path for symbol upload when targeting Switch by bitsandfoxes in #2580
  • Propagate app context on Android by bitsandfoxes in #2557
  • Prevent command injection in create-unity-matrix workflow (GDX-417) by fix-it-felix-sentry in #2552

Internal Changes 🔧

Deps

  • Update Java SDK to v8.34.1 by github-actions in #2578
  • Update Java SDK to v8.34.0 by github-actions in #2574
  • Update CLI to v3.3.0 by github-actions in #2576
  • Update Cocoa SDK to v9.6.0 by github-actions in #2575
  • Update Native SDK to v0.13.1 by github-actions in #2567
  • Update CLI to v3.2.3 by github-actions in #2568
  • Update Cocoa SDK to v9.5.1 by github-actions in #2565
  • Update CLI to v3.2.2 by github-actions in #2563
  • Update CLI to v3.2.1 by github-actions in #2561
  • Update Native SDK to v0.13.0 by github-actions in #2560
  • Update Cocoa SDK to v9.5.0 by github-actions in #2558
  • Update Java SDK to v8.33.0 by github-actions in #2555
  • Update Native SDK to v0.12.8 by github-actions in #2550

🤖 This preview updates automatically when you update the PR.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: AddPath call missing required arguments
    • Changed AddPath(beePath) to AddPath(paths, beePath, logger) to provide all required arguments
  • ✅ Fixed: Bee cache path uses wrong base directory
    • Changed buildOutputDir to projectDir when constructing the Bee cache path since Library folder is at project root

Create PR

Or push these changes by commenting:

@cursor push 6955aa6806
Preview (6955aa6806)
diff --git a/src/Sentry.Unity.Editor/Native/BuildPostProcess.cs b/src/Sentry.Unity.Editor/Native/BuildPostProcess.cs
--- a/src/Sentry.Unity.Editor/Native/BuildPostProcess.cs
+++ b/src/Sentry.Unity.Editor/Native/BuildPostProcess.cs
@@ -322,8 +322,8 @@ private static void UploadDebugSymbols(IDiagnosticLogger logger, BuildTarget tar
                 }
 
                 // When exporting as an NSP the assemblies are bundled inside the package. So we're also checking the build cache.
-                var beePath = Path.Combine(buildOutputDir, "Library", "Bee", "artifacts", "SwitchPlayerBuildProgram");
-                AddPath(beePath);
+                var beePath = Path.Combine(projectDir, "Library", "Bee", "artifacts", "SwitchPlayerBuildProgram");
+                AddPath(paths, beePath, logger);
 
                 // User-provided Sentry plugin
                 AddPath(paths, Path.GetFullPath("Assets/Plugins/Sentry/"), logger);

@@ -322,8 +322,8 @@ private static void UploadDebugSymbols(IDiagnosticLogger logger, BuildTarget tar
                 }
 
                 // When exporting as an NSP the assemblies are bundled inside the package. So we're also checking the build cache.
-                var beePath = Path.Combine(buildOutputDir, "Library", "Bee", "artifacts", "SwitchPlayerBuildProgram");
-                AddPath(beePath);
+                var beePath = Path.Combine(projectDir, "Library", "Bee", "artifacts", "SwitchPlayerBuildProgram");
+                AddPath(paths, beePath, logger);
 
                 // User-provided Sentry plugin
                 AddPath(paths, Path.GetFullPath("Assets/Plugins/Sentry/"), logger);

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

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