This is my paket.dependcies file:
source https://nuget.org/api/v2
github kshanafelt/commandline build.fsx
Here is what I get:
Note this is for a initial pull, without a paket-files folder, and without a paket.lock file
PS C:\src\Projects\r> .\.paket\paket.exe install --verbose
Paket version 2.2.1.0
found: C:\src\Projects\DeBlorber\paket.dependencies
Parsing C:\src\Projects\DeBlorber\paket.dependencies
Paket failed with:
The input sequence was empty.
Parameter name: source
StackTrace:
at Microsoft.FSharp.Collections.SeqModule.Last[T](IEnumerable`1 source)
at <StartupCode$Paket-Core>.$DependenciesFile.remoteDependencies@435-2.Invoke(Tuple`2 tupledArg)
at Microsoft.FSharp.Collections.IEnumerator.map@111.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
at <StartupCode$Paket-Core>.$DependenciesFile.Resolve@410-2.Invoke(GroupName k, RequirementsGroup group)
at Microsoft.FSharp.Collections.MapTreeModule.mapiOpt[a,b,c](FSharpFunc`3 f, MapTree`2 m)
at Microsoft.FSharp.Collections.FSharpMap`2.Map[b](FSharpFunc`2 f)
at Paket.UpdateProcess.lockFile@153.Invoke(DependenciesFile d, FSharpMap`2 g)
at Paket.UpdateProcess.selectiveUpdate(FSharpFunc`2 resolve, LockFile lockFile, DependenciesFile dependenciesFile, Boolean updateAll, FSharpOption`1 package)
at Paket.UpdateProcess.SelectiveUpdate(DependenciesFile dependenciesFile, Boolean updateAll, FSharpOption`1 exclude, Boolean force)
at Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, Boolean updateAll, FSharpOption`1 exclude, UpdaterOptions options)
at <StartupCode$Paket-Core>.$PublicAPI.Install@148.Invoke(Unit unitVar0)
at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
at Paket.Program.handler@295-10.Invoke(ParseResults`1 results)
at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
at Paket.Program.processCommand@66-1.Invoke(Command command, String[] args)
at Paket.Program.main()
PS C:\src\Projects\>
Oddly I get the same error if I try the example in the tutorial (http://fsprojects.github.io/Paket/github-dependencies.html):
paket.dependcies:
source https://nuget.org/api/v2
github fsharp/FAKE modules/Octokit/Octokit.fsx
I did however find a fix, this works:
paket.dependcies:
source https://nuget.org/api/v2
nuget CommandLineParser
github kshanafelt/commandline build.fsx
Also GitHub paths to files that didn't also have a paket.dependcies file in their same folder seemed to work. For example this worked for me:
paket.dependcies:
source https://nuget.org/api/v2
github kshanafelt/commandline src/CommandLine/CommandLine.csproj
It's seems odd, but it seems that to pull a GitHub dependency that has a paket.dependcies file next to it, you also need to pull a nuget dependency.
I don't know much f#, or I would have tried to fix it, but the error seem to be coming from Seq.last here:
https://github.com/fsprojects/Paket/blob/2.2.1/src/Paket.Core/DependenciesFile.fs#L436
This is my paket.dependcies file:
Here is what I get:
Note this is for a initial pull, without a paket-files folder, and without a paket.lock file
Oddly I get the same error if I try the example in the tutorial (http://fsprojects.github.io/Paket/github-dependencies.html):
paket.dependcies:
I did however find a fix, this works:
paket.dependcies:
Also GitHub paths to files that didn't also have a paket.dependcies file in their same folder seemed to work. For example this worked for me:
paket.dependcies:
It's seems odd, but it seems that to pull a GitHub dependency that has a paket.dependcies file next to it, you also need to pull a nuget dependency.
I don't know much f#, or I would have tried to fix it, but the error seem to be coming from
Seq.lasthere:https://github.com/fsprojects/Paket/blob/2.2.1/src/Paket.Core/DependenciesFile.fs#L436