Skip to content

Don't try to copy files that no longer exist #9941

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

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

grendello
Copy link
Contributor

Context: b7e21ad

b7e21ad moved src/native/monodroid/ to src/native/mono/monodroid in order to
add a parallel tree for the CoreCLR host. However, the xaprepare code which used
to copy certain files from that directory wasn't updated, resulting in errors on
CI similar to:

Step Xamarin.Android.Prepare.Step_CopyExtraResultFilesForCI failed: Could not find a part of the path '/Users/runner/work/1/s/src/native/monodroid'.
System.InvalidOperationException: Step Xamarin.Android.Prepare.Step_CopyExtraResultFilesForCI failed: Could not find a part of the path '/Users/runner/work/1/s/src/native/monodroid'.
  ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/runner/work/1/s/src/native/monodroid'.

Fix the error by removing the offending line from xaprepare completely, as we no
longer have any *.include.* files there. There used to be serialized mono config
and library mapping files here, but we no longer use them.

Context: b7e21ad

b7e21ad moved `src/native/monodroid/` to `src/native/mono/monodroid` in order to add a parallel
tree for the CoreCLR host. However, the `xaprepare` code which used to copy certain files from that
directory wasn't updated, resulting in errors on CI similar to:

    Step Xamarin.Android.Prepare.Step_CopyExtraResultFilesForCI failed: Could not find a part of the path '/Users/runner/work/1/s/src/native/monodroid'.
    System.InvalidOperationException: Step Xamarin.Android.Prepare.Step_CopyExtraResultFilesForCI failed: Could not find a part of the path '/Users/runner/work/1/s/src/native/monodroid'.
      ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/runner/work/1/s/src/native/monodroid'.

Fix the error by removing the offending line from `xaprepare` completely, as we no longer have any
`*.include.*` files there. There used to be serialized mono config and library mapping files here,
but we no longer use them.
@grendello grendello requested review from jonpryor and pjcollins March 20, 2025 08:42
@jonpryor jonpryor merged commit d70b61e into main Mar 20, 2025
56 of 58 checks passed
@jonpryor jonpryor deleted the dev/grendel/remove-unnecessary-code branch March 20, 2025 16:33
@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants