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

Add PATH for Arm emulation x64 on Mac #1932

Merged
merged 8 commits into from
Sep 11, 2024

Conversation

nagilson
Copy link
Member

@nagilson nagilson commented Aug 20, 2024

Sometimes the PATH is not found even though the installer succeeds. This adds a check to see if it might be the other mac path that the installer can use. I believe this is the only other path it can use. https://github.com/dotnet/sdk/blob/a620dca0942ca7b9bcd7b6dac2b847e5b46afe7e/src/Installer/redist-installer/targets/GeneratePKG.targets#L17

I could not get my hands on a mac m1 that worked despite trial and tribulation (except for like buying one myself for this one bug) so this will add a check to see if it installed in this emulation path.

Theoretically it shouldnt be possible to have an architecture mismatch but I dont know what values os.platform and arch will return if its on an emulated architecture.

@nagilson
Copy link
Member Author

nagilson commented Sep 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nagilson nagilson marked this pull request as ready for review September 4, 2024 20:45
@nagilson nagilson requested a review from a team September 4, 2024 20:46
@nagilson
Copy link
Member Author

nagilson commented Sep 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nagilson
Copy link
Member Author

nagilson commented Sep 5, 2024

Waiting to see if I can get a mac to do this better or not.

@nagilson
Copy link
Member Author

nagilson commented Sep 5, 2024

Otherwise, this PR is ready to go.

@nagilson
Copy link
Member Author

Getting a mac has still taken a while. I am going to merge this

@nagilson nagilson enabled auto-merge (squash) September 11, 2024 16:18
@nagilson nagilson merged commit 0b37e66 into dotnet:main Sep 11, 2024
9 checks passed
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.

2 participants