-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Only set path in x64 mac installer when installing on x64 #59210
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
Conversation
In other words don't set the path for x64 installer on ARM64
@richlander let me know that he'd like us to write |
@jkoritzinsky or @vitek-karas do either of you know why we would need the postinstall script in both host and hostfxr? Do those ever get deployed seperately? |
There should be no need for both the host and hostfxr to set the path to dotnet. Since the host installs dotnet, it should be the only package responsible for this.
src/installer/pkg/sfx/installers/osx_scripts/host-x64/postinstall
Outdated
Show resolved
Hide resolved
Also refactor script to use a template so that we don't need to fork the script.
Co-authored-by: Adeel Mujahid <[email protected]>
Since this commit was significantly changed since first approval, can I get a re-review? We'd like to get this in and ported back to 6.0. |
* Only set path in x64 mac installer when installing on x64 In other words don't set the path for x64 installer on ARM64 * Remove postinstall script from hostfxr There should be no need for both the host and hostfxr to set the path to dotnet. Since the host installs dotnet, it should be the only package responsible for this. * Make postinstall set install_location on mac Also refactor script to use a template so that we don't need to fork the script. * fix some syntax errors in script * Update src/installer/pkg/sfx/installers/dotnet-host.proj Co-authored-by: Adeel Mujahid <[email protected]> * Refine uname regular expressions Co-authored-by: Adeel Mujahid <[email protected]>
* Retarget DOTNETHOME when installing x64 on ARM64 (#58669) * Only set path in x64 mac installer when installing on x64 (#59210) * Only set path in x64 mac installer when installing on x64 In other words don't set the path for x64 installer on ARM64 * Remove postinstall script from hostfxr There should be no need for both the host and hostfxr to set the path to dotnet. Since the host installs dotnet, it should be the only package responsible for this. * Make postinstall set install_location on mac Also refactor script to use a template so that we don't need to fork the script. * fix some syntax errors in script * Update src/installer/pkg/sfx/installers/dotnet-host.proj Co-authored-by: Adeel Mujahid <[email protected]> * Refine uname regular expressions Co-authored-by: Adeel Mujahid <[email protected]> * Updating dependencies from https://github.com/dotnet/arcade build 20210917.3 Co-authored-by: Adeel Mujahid <[email protected]>
In other words don't set the path for x64 installer on ARM64
I find it odd that both the host and hostfxfr write to path today. We could fix that if folks can say definitively if it is redundant. For now I unified the duplicate scripts (one was missing a bugifx to ensure
paths.d
existed).If we decide to have these scripts write to
/etc/dotnet/install_location
we might want to change how we calculate "installer arch" and do that by applying a template at build time. I'm waiting to hear if we need to set that.