-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Run dotnet.sh/cmd script before running dotnet restore #48375
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
Run dotnet.sh/cmd script before running dotnet restore #48375
Conversation
|
Issue: #48376 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now realized that the error could be because we are not running bootstrap inside jitutils_directory. I deleted _cwd from run_command, but I guess it should be there and we should continue passing jitutils_directory as current working directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh; I deleted this arg because it was "extra", but maybe the cwd should be there? But I still think we should invoke the shell script first to ensure the .dotnet directory is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, cwd should be there so we can run it inside jitutils_directory. That should fix the problem.
And yes, we can run dotnet --info just to be sure.
16ffb2c to
1b8d37d
Compare
kunalspathak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor changes needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing comma: _cwd=None,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: _cwd
1. Run dotnet for jitutils with jitutils dir as the current working dir. 2. Run dotnet.sh/cmd script before running bootstrap (and `dotnet restore`) to ensure `.dotnet` directory exists.
1b8d37d to
18dc018
Compare
No description provided.