Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assets outside project root with Manual Shared Bundles. #9734

Merged
merged 3 commits into from
May 23, 2024

Conversation

marcins
Copy link
Contributor

@marcins marcins commented May 23, 2024

↪️ Pull Request

Where assets in a manual shared bundle are outside the project root, the code that matches assets against globs is not correctly calculating the relative path to those assets. This results in a likely malformed path being compared.

This change replaces that code with a path.relative to ensure proper relative paths are produced.

🚨 Test instructions

New integration test has been added (tested failing first).

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@marcins marcins requested a review from a team May 23, 2024 03:38
Copy link
Contributor

@mattcompiles mattcompiles left a comment

Choose a reason for hiding this comment

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

Nice one mate 👏

@marcins marcins added this pull request to the merge queue May 23, 2024
Merged via the queue into v2 with commit f833a24 May 23, 2024
14 of 17 checks passed
@marcins marcins deleted the mszczepanski/fix-msb-project-relative-paths branch May 23, 2024 05:50
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.

4 participants