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

Arcade tools bootstraping fails on Linux if dotnet sdk is installed globally #1364

Closed
jkotas opened this issue Nov 20, 2018 · 9 comments
Closed

Comments

@jkotas
Copy link
Member

jkotas commented Nov 20, 2018

Repro:

docker -it microsoft/dotnet:2.1-sdk
apt-get install clang-3.9 cmake make libc6-dev libssl-dev libkrb5-dev libcurl4-openssl-dev zlib1g-dev
cd $HOME
git clone https://github.com/dotnet/corefx
cd corefx
./build.sh

Result:

Build fails with

/root/corefx/eng/Tools.props(56,5): error MSB3073: The command "/root/.nuget/packages/microsoft.dotnet.buildtools/3.0.0-preview1-03415-01/lib/init-tools.sh /root/corefx/ /root/corefx/.dotnet/dotnet /root/corefx/Tools /root/.nuget/packages/ > /root/corefx/init-tools.log" exited with code 1. [/root/.nuget/packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.18565.8/tools/Tools.proj]
@jkotas
Copy link
Member Author

jkotas commented Nov 20, 2018

init-tools.log contains the following error:
ERROR: Cannot find dotnet.exe at path '/root/corefx/.dotnet/dotnet'. Please pass in the path to dotnet.exe as the 2nd parameter.

The problem seems to be on the path where the scripts detect the globally installed dotnet and try to use it instead of downloading local copy. The globally installed dotnet is not wired in correctly.

@markwilkie
Copy link
Member

I think this is a known issue. @chcosta or @jcagme - do you remember the details?

@chcosta
Copy link
Member

chcosta commented Nov 20, 2018

AFAIK, this is not a known (or reported) issue.

@jcagme
Copy link
Contributor

jcagme commented Nov 20, 2018

Yeah I don't think this is known. Epic updated and will prioritize accordingly.

@marek-safar
Copy link

@jcagme what is the update on the priority? We are hitting this working on CoreFX for Mono on Mac as well.

@jcagme
Copy link
Contributor

jcagme commented Dec 15, 2018

Not sure on my end but I think @tmat was maybe looking at it?

@tmat
Copy link
Member

tmat commented Dec 16, 2018

I think these lines should be removed and the usage of DotNetCmd replaced with DotNetTool defined here.

@am11
Copy link
Member

am11 commented Jan 19, 2019

This issue seems to be resolved. I tried with dotnet/corefx@df75edc45df sometime ago with global dotnet 2.1 installed on the Ubuntu box, it uses dotnet from corefx/.dotnet directory.

@jcagme
Copy link
Contributor

jcagme commented Feb 7, 2019

I've tried this on ubuntu-16.04-c103199-20180628134544 where I installed dotnet SDK 2.1.4 before running build.sh and I was not able to repro.

In case it continues to be an issue please file a new issue.

@jcagme jcagme closed this as completed Feb 7, 2019
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

No branches or pull requests

7 participants