You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
Create a NuGet package (doesn't matter what's in it)
Run dnu packages add MyPackage.1.0.0.nupkg c:\pkgs
Modify the original NuGet package in some verifiable way (e.g. change something in the nuspec, add a file, etc.)
Run dnu packages add MyPackage.1.0.0.nupkg c:\pkgsagain
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.
The text was updated successfully, but these errors were encountered:
@muratg can we get someone to take a look at this this week? This is a must-fix to ship even the next preview because we use this command on the CI and it doesn't work as we want it to.
@ChengTian a simple change would be to compare the sha's. If they differ then overwrite. Also we should print out a message that shows what action was taken (overwrite, vs already exists).
Repro:
dnu packages add MyPackage.1.0.0.nupkg c:\pkgs
dnu packages add MyPackage.1.0.0.nupkg c:\pkgs
againResult:
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.The text was updated successfully, but these errors were encountered: