Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Apr 8, 2024

Backport of #3467 to release/8.0

/cc @davidfowl

Customer Impact

Today paths to bind mounts are resolved using CWD, which is different to projects, executables and pretty much everything else in the app model today. This change makes bind mounts resolve relative paths relative to the app host directory.

Testing

Added unit tests and did manual testing.

Risk

Low, we were already resolving the relative path to

Regression?

No.

Microsoft Reviewers: Open in CodeFlow

…ade it so that bind mounts annotations are resolved relative to the app host directory by default. - Bind mounts without a rooted path will throw an error. - Removed logic from ApplicationExecutor that checks the annotation data since this is checked in the constructor. - Added tests (moved tests to Containers folder)
@ghost ghost added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Apr 8, 2024
@dotnet-policy-service dotnet-policy-service bot added the Servicing-consider Issue for next servicing release review label Apr 8, 2024
@danmoseley danmoseley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 9, 2024
@davidfowl davidfowl merged commit b43f91d into release/8.0 Apr 9, 2024
@davidfowl davidfowl deleted the backport/pr-3467-to-release/8.0 branch April 9, 2024 01:56
@danmoseley danmoseley mentioned this pull request Apr 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants