You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@xhochy This happens after activating the environment, as I mentioned in the initial message:
After creating an environment with this conda package, and activating it.
I suspect the problem is that I'm doing it through PowerShell, but the activation script that sets the GOROOT environment variable is written for CMD according to this package's recipe. So, maybe it just doesn't work under PowerShell?
This could be the issue. But I have seen very packages actually having activation scripts for powershell. Thus, I had the belief that powershell users would get the activation through CMD. Still, I'm confused that this error is popping up as we don't set GOROOT in any activation script.
Solution to issue cannot be found in the documentation.
Issue
After creating an environment with this conda package, and activating it, any call to
go
(e.g.go version
) fails with the following error:Interestingly doing the same via
conda run
works fine.I'm using PowerShell 7 and miniconda3.
Installed packages
# Name Version Build Channel _go_select 2.3.0 cgo conda-forge go 1.21.3 hf68ea12_0 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge msys2-conda-epoch 20160418 1 conda-forge
Environment info
The text was updated successfully, but these errors were encountered: