-
Notifications
You must be signed in to change notification settings - Fork 652
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
GitVersion should rely on existing dotnet SDKs rather than downloading it using brew #2551
Comments
@asbjornu can you check that? |
Homebrew can't set environment variables globally on your machine on install and installs formulae to a different path than the official installer so you would need to adjust the In the meantime, I would advise you to uninstall Microsoft's official SDK, install Homebrew's export PATH="$(brew --prefix)/bin:$PATH"
export DOTNET_ROOT="/usr/local/Cellar/dotnet/3.1.108/libexec" |
I see, thanks for the info :) |
Homebrew/homebrew-core#69323 seeks to add this information to the |
🎉 This issue has been resolved in version 5.6.7 🎉 Your GitReleaseManager bot 📦🚀 |
Thanks for catching that. Fixed |
I recognized that when I install GitVersion using brew on macos, it downloads a separate dotnet SDK using brew as well. Instead, it should rely on the existing one.
Detailed Description
I faced a problem that after installing GitVersion using brew, my Visual Studio Code Omnisharp could not find the installed SDKs anymore.
After doing some research, I deleted dotnet using brew and reinstalled dotnet using the official installer. After that my Visuals Studio Code Omnisharp found the SDK again, but my GitVersion was not working anymore.
I assume that installing GitVersion using brew, not only installs dotnet via brew, but also changes Environment that is responsible for pointing to a specific dotnet SDK version when invoking the dotnet command. Probable it changes the PATH in a way that the dotnet version installed via brew gets found first, before the one installed via the official installer.
Context
The importance of this is the following. With the described scenario I had to choose if I want to have GitVersion working or my Visual Studio Code Omnisharp. Both were not working at the same time. I had to create a symlink in order to tell GitVersion to use the SDK installed via the official installer.
Possible Implementation
The text was updated successfully, but these errors were encountered: