Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

karajas
Copy link
Member

@karajas karajas commented Jul 19, 2017

/cc @ravimeda

init-tools.sh Outdated
echo "Initializing BuildTools..."
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> $__init_tools_log
# On ubuntu 14.04, /bin/sh (symbolic link) calls /bin/dash by default.
$__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to my earlier comment, consider redirecting output to the log. Refer to https://github.com/dotnet/corefx/blob/master/init-tools.sh#L113

init-tools.sh Outdated

if [ ! -e $__BUILD_TOOLS_PATH ]; then
echo "Running: $__DOTNET_CMD restore "$__PROJECT_JSON_FILE" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE" >> $__init_tools_log
$__DOTNET_CMD restore "$__PROJECT_JSON_FILE" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$__DOTNET_CMD restore "$__PROJECT_JSON_FILE" --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE

Consider redirecting this output to the log. Please refer to https://github.com/dotnet/corefx/blob/master/init-tools.sh#L101

@karajas karajas force-pushed the fixInitTools/release/1.0.0 branch from ae49685 to 6debec6 Compare July 21, 2017 18:31
:: If semaphore exists do nothing
if exist "%BUILD_TOOLS_SEMAPHORE%" (
echo Tools are already initialized.
goto :DONE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master has :EOF here, rather than :DONE. This PR removes the DONE label, resulting in failures when tools are already initialized.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@karajas karajas force-pushed the fixInitTools/release/1.0.0 branch from 6debec6 to ec0edfb Compare July 21, 2017 20:34
@karajas karajas merged commit 684a161 into dotnet:release/1.0.0 Jul 25, 2017
@karelz karelz modified the milestone: 1.0.x Aug 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants