Declare scriptroot before its usage#3076
Declare scriptroot before its usage#3076chcosta merged 1 commit intodotnet:masterfrom am11:add-missing-var-declaration
scriptroot before its usage#3076Conversation
|
@jkotas, is this the correct repository for this change? I backtraced it to this location as origin. :) |
|
I am hitting this issue with |
|
@chcosta Looks like this issue was introduced by your recent change. |
chcosta
left a comment
There was a problem hiding this comment.
I feel like this variable ("script_root") is pervasive enough that it should be moved into tools.sh (as you've done here), but also removed from the other scripts in eng\common which define / use the variable and import tools.sh. Also, to reverse on my previous statement, it's possible that some repo now has a dependency on the name "scriptroot" and we should probably stick with that to be less disruptive.
|
I had some time to look into the reported issue further. I don't think the It looks like the build progresses past that point and fails for other reasons. "scriptroot" is not set because in standard Arcade repos, that variable is set by the calling scripts in every case. CoreClr (and other repos like CoreClr, e.g. Roslyn) which do some custom things, don't necessarily set this variable. I think the simplest fix here is to just move the declaration down a couple of lines and change, https://github.com/dotnet/arcade/blob/master/eng/common/tools.sh#L359-L362 to |
|
There are multiple (10+) scripts in this repo, where |
Following error is reported (and ignored) when building CoreCLR: ```sh ... ... Checking prerequisites... /datadrive/projects/coreclr/eng/common/tools.sh: line 359: /pipeline-logging-functions.sh: No such file or directory /datadrive/projects/coreclr/eng/common/tools.sh: line 359: /pipeline-logging-functions.sh: No such file or directory Laying out dynamically generated EventSource classes ... ... ```
* Update dependencies from https://github.com/dotnet/arcade build 20190620.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19320.1 * Bring changes from dotnet/arcade#3076 * Update dependencies from https://github.com/dotnet/arcade build 20190621.75 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19321.75 * Update dependencies from https://github.com/dotnet/arcade build 20190622.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19322.2
Following error is reported (and ignored) when building CoreCLR: