Fix source option for install command.

The original PR that implemented the source option was updated incorrectly
during review and the source option was accidentally not passed into the
package obtainer.  This resulted in the source option not being respected from
the install command.

The tests passed because the only test coverage is at the package obtainer
level; tests of the install command itself were waiting on additional changes
to enable (still not yet merged).

The fix is to properly pass the source option through when obtaining the
package.
This commit is contained in:
Peter Huene 2018-01-17 19:28:29 -08:00
parent f5fce413e9
commit a64da0129a
No known key found for this signature in database
GPG key ID: E1D265D820213D6A

View file

@ -94,7 +94,8 @@ namespace Microsoft.DotNet.Tools.Install.Tool
packageId: _packageId,
packageVersion: _packageVersion,
nugetconfig: configFile,
targetframework: _framework);
targetframework: _framework,
source: _source);
}
catch (PackageObtainException ex)
{