Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paket convert-from-nuget fails when package source keys contain invalid XML element chars #252

Closed
sneal opened this issue Oct 12, 2014 · 1 comment · Fixed by #253
Closed

Comments

@sneal
Copy link

sneal commented Oct 12, 2014

Running paket convert-from-nuget fails with error:

paket convert-from-nuget -v
Paket version 0.6.9.0
Paket failed with:
   '//packageSourceCredentials/DaptivBus @ AppVeyor' has an invalid token.
StackTrace:
     at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean allowVar, Boolean allowKey)
   at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
   at System.Xml.XPath.XPathNavigator.Select(String xpath)
   at System.Xml.XmlNode.SelectNodes(String xpath)
   at [email protected](IEnumerable`1& next)
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
   at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
   at Paket.NuGetConvert.convertNugetsToDepFile(IEnumerable`1 nugetPackagesConfigs)
   at Paket.NuGetConvert.ConvertFromNuget(Boolean force, Boolean installAfter, Boolean initAutoRestore)
   at [email protected](Unit unitVar)
   at <StartupCode$paket>.$Paket.Program.main@()

When given the following NuGet.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <solution>
    <add key="disableSourceControlIntegration" value="true" />
  </solution>
  <packageSources>
    <clear />
    <add key="DaptivBus @ AppVeyor" value="https://ci.appveyor.com/nuget/daptiv-bus-15dvq7rlh05a" />
  </packageSources>
  <activePackageSource>
    <add key="DaptivBus @ AppVeyor" value="https://ci.appveyor.com/nuget/daptiv-bus-15dvq7rlh05a" />
  </activePackageSource>
</configuration>

Changing the package source key from DaptivBus @ AppVeyor to DaptivBusAtAppVeyor works around the issue.

@forki
Copy link
Member

forki commented Oct 12, 2014

domino

/cc @theimowski is this fixable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants