question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.0.3 - first-run experience should work even with a 2.0 CLI installed.

See original GitHub issue

Steps to reproduce

  1. Cleared NuGet caches (dotnet nuget locals all --clear).
  2. git clone https://github.com/aspnet/DotNetTools.git --branch rel/1.0.1 && cd DotNetTools
  3. Change global.json to sdk 1.0.3
  4. dotnet restore

Expected behavior

First-run experience primes nuget cache and restore works.

Actual behavior

First-run fails with

Failed to create prime the NuGet cache. restore failed with: 1

All calls to dotnet restore fail regardless of DOTNET_SKIP_FIRST_TIME_EXPERIENCE setting

/Users/namc/.dotnet/sdk/1.0.3/NuGet.targets(97,5): error : Failed to retrieve information about ‘Microsoft.NETCore.App’ from remote source ‘/Users/namc/.dotnet/NuGetFallbackFol der’. [/Users/namc/dev/aspnet/DotNetTools/DotNetTools.sln]

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.3)

Product Information:
 Version:            1.0.3
 Commit SHA-1 hash:  37224c9917

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /Users/namc/.dotnet/sdk/1.0.3

Workaround

export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
mkdir -p ~/.dotnet/NuGetFallbackFolder

cc @livarcocc

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
natemcmastercommented, May 3, 2017

Yes, restore works fine if I mkdir -p ~/.dotnet/NuGetFallbackFolder or edit the global NuGet.config.

NuGet cache warm is still broken though. It appears once you install a 2.0.0-* version of CLI, NuGet cache warmup on 1.x CLI breaks.

Repro: Install 2.0.0-preview1 and 1.0.3 CLI. Set global.json to 1.0.3. dotnet new

Result: As above: “Failed to create prime the NuGet cache.

This looks like a duplicate of what’s described here: https://github.com/dotnet/cli/issues/6381

0reactions
livarcocccommented, May 9, 2017

I believe this is actually a dup of this one here: https://github.com/dotnet/cli/issues/6550. I will track this issue there, as it has a better explanation of what is going on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create prime the NuGet cache. new failed with: - ...
I'm seeing this issue, too, on Windows, even with VS closed. The exit code is different on macOS, but after installing 2.0.0 CLI,...
Read more >
python - Pipenv unable to install some dependencies (pip ...
I have a project at work I'm converting to pipenv. When I first run pipenv install , it starts fine, but multiple dependencies...
Read more >
Arduino CLI And IDE now Released - Teensy Supported! ...
You Open the Boards Manager and Scroll down until you see the Teensy Install and click the Install button. 27535. You then should...
Read more >
todod 1.0.3
Todod is a command line based todo list manager. It supports tagging todos and setting due dates. You can filter on certain tags...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, introduce a simple stability voting system and have a core team...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found