Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Roll forward to newer CLI - #1065

Merged
nattress merged 1 commit into
dotnet:masterfrom
nattress:cli
Apr 5, 2016
Merged

nattress merged 1 commit into
dotnet:masterfrom
nattress:cli

Conversation

@nattress

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread build.sh Outdated

echo "cat ${__cli_dir}/.version"
cat "${__cli_dir}/.version"
echo "ls ${__cli_dir}/sdk"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be updated in build.cmd too?

echo type "%__DotNetCliPath%\.version"
type "%__DotNetCliPath%\.version"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's covered already by line 70 in Install-cli.ps1 that didn't need to change

say "Latest version: $RemoteVersion"
say "Local Version: $LocalVersion"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, but that never prints anything because of the way the PowerShell script is invoked. The thing that prints the version is the thing I quoted from build.cmd.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah that. I updated it to print out the version of what's there now after invoking Install-Cli.ps1

@MichalStrehovsky

Copy link
Copy Markdown
Member

Do we need to also update the cli\bin reference at the bottom of install-cli.ps1 and in how-to-build-and-run-ilcompiler-in-console-shell-prompt.md?

@nattress

Copy link
Copy Markdown
Contributor Author

@schellap PTAL

@nattress

Copy link
Copy Markdown
Contributor Author

Updated the documentation with the new path.

Comment thread src/scripts/install-cli.ps1 Outdated
$Channel="beta"
$DotNetFileName="dotnet-win-" + $TargetPlatform + ".1.0.0.001672.zip"
$DotNetUrl="$Feed/$Channel/Binaries/1.0.0.001672"
$DotNetFileName="dotnet-dev-win-" + $TargetPlatform + ".1.0.0-beta-002111.zip"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

2111 will apparently break builds on Windows 7: dotnet/corefx#7376 :/
Maybe switching it up for 2131 won't be too much hassle?

@nattress nattress changed the title Cli Roll forward to newer CLI Mar 31, 2016
@jkotas

jkotas commented Apr 3, 2016

Copy link
Copy Markdown
Member

FWIW, it works fine on my Mac with parallel restore disabled (https://github.com/jkotas/corert/commit/412440bb9ba25171879414335505da4c4e93c97a), but the CI is failing on error that I am not able to repro.

@nattress

nattress commented Apr 4, 2016

Copy link
Copy Markdown
Contributor Author

@mmitche Matt, any idea why the CI is failing here / how to diagnose? Both OSX and Ubuntu give lots of errors during Nuget restore. Both myself and Jan can build locally and cannot repro this failure. An example error:

11:15:48 log : Restoring packages for /mnt/j/workspace/dotnet_corert/debug_prtest_ubuntu/bin/Product/Linux.x64.Debug/packaging/stage1/project.json...
11:15:48 EXEC : error : Failed to retrieve information from remote source '/mnt/j/workspace/dotnet_corert/debug_prtest_ubuntu/bin/tools/.nuget/packages/'. [/mnt/j/workspace/dotnet_corert/debug_prtest_ubuntu/src/dirs.proj]

@mmitche

mmitche commented Apr 4, 2016

Copy link
Copy Markdown
Member

@nattress I am not sure, but most likely the CI is right give the nature of the PR. Have you attempted to repro locally after clearing out your local cache and purging your git enlistment? It looks like Windows was fine so i'd start with a non-windows OS.

/cc @piotrpMSFT

@nattress

nattress commented Apr 5, 2016

Copy link
Copy Markdown
Contributor Author

This looks like an issue with dotnet restore failing when the local package cache folder doesn't exist. I filed https://github.com/dotnet/cli/issues/2270.

@schellap I added a workaround in build.sh to create the package cache folder for the time being so CI passes.

@jkotas

jkotas commented Apr 5, 2016

Copy link
Copy Markdown
Member

👍

- Migrate to CLI 1.0.0-beta-002209
- Alter scripting to support CLI package layout and Azure blob URL changes
@nattress
nattress merged commit 5ccde20 into dotnet:master Apr 5, 2016
@nattress
nattress deleted the cli branch April 5, 2016 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants