Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

dnu packages add doesn't overwrite destination if it already exists #1726

@Eilon

Description

@Eilon

Repro:

  1. Create a NuGet package (doesn't matter what's in it)
  2. Run dnu packages add MyPackage.1.0.0.nupkg c:\pkgs
  3. Modify the original NuGet package in some verifiable way (e.g. change something in the nuspec, add a file, etc.)
  4. Run dnu packages add MyPackage.1.0.0.nupkg c:\pkgs again

Result:
Step (4) does nothing, though there's no warning of any sort. That is, the original "exploded" package remains in c:\pkgs, untouched.

Expected:
Step (4) should overwrite the destination.


This in fact causes issues in our own build system where we publish packages to the volatile feed on the CI. For example with a lot of internal packages that we consume (e.g. Roslyn), their package id's and version numbers don't change on each build, so our build system thinks it's updating Roslyn builds in the volatile feed with dnu packages add ... when in fact it's no-op'ing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions