Description
Description
I am converting a project from NuGet to Paket using the convert-from-nuget
command. As per this page I should be able to authenticate a private feed through the %PRIVATE_FEED_USER%
and %PRIVATE_FEED_PASS%
variables, but I cannot. Supplying the credentials as plaintext in the file works and I have verified that the variables do exist in the executing environment as echo %PRIVATE_FEED_USER%
and echo %PRIVATE_FEED_PASS%
return the correct values.
The --creds-migrations
options are not satisfactory as I would not like to have plaintext passwords in source control, but for a multi-user environment, it does not make sense to encrypt one user's credentials and put it under source control. Users should be able to supply their own credentials for the private (TeamCity) NuGet feed.
Repro steps
- Have a non-Paket project that consumes a private NuGet feed (this one is TeamCity) for a dependency.
- Create a
.paket
directory withpaket.exe
,paket.bootstrap.exe
, andpaket.targets
- Create a paket.dependencies file to specify the source with
source </path/to/feed/uri> username: "%PRIVATE_FEED_USER%" password: "%PRIVATE_FEED_PASS%"
- Set the PRIVATE_FEED_USER and PRIVATE_FEED_PASS to valid credentials
- Ensure that these are in effect in the current executing environment with echo
- Run
.paket/paket.exe convert-from-nuget --force
or.paket/paket.exe convert-from-nuget
in the main project directory.
Expected behavior
Environmental variables should authenticate private feeds with convert-from-nuget
.
Actual behavior
Paket fails to retrieve package listing when using convert-from-nuget
with environmental variables for a private NuGet feed, but succeeds when using plaintext credentials.
Known workarounds
Put plaintext credentials in the paket.dependencies
file.
Related information
- Operating system: Windows 7 Professional SP1
- Branch: Paket master tagged 3.8.0
- .NET Runtime, CoreCLR or Mono Version: .NET Framework 4.5.1
- Performance information, links to performance testing scripts
I can spend some more time on this later, but I want to make sure this is not "expected behavior" and I'm just missing something.