Skip to content

Unable to retrieve package version for ... #3419

Closed

Description

@matthid

Description

Sometimes I see this in my fake builds:

  -> Unable to retrieve package versions for 'Fake.Runtime'
     -- CLOSED --
        
     -- OPEN ----
        Fake.Runtime  (from /home/travis/build/fsharp/FAKE/integrationtests/core-simple-runtime-error/temp/.fake/runtime-error.fsx/paket.dependencies)
        FSharp.Core  (from /home/travis/build/fsharp/FAKE/integrationtests/core-simple-runtime-error/temp/.fake/runtime-error.fsx/paket.dependencies)
     StackTrace:
          at Paket.PackageResolver.getVersionsBlock@1057-1.GenerateNext(IEnumerable`1& next)
          at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
          at Microsoft.FSharp.Collections.SeqModule.oneStepTo@979[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i)
          at Microsoft.FSharp.Collections.SeqModule.action@4251-1[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i, Unit unitVar0)
          at Microsoft.FSharp.Collections.SeqModule.result@995.Invoke(Int32 i)
          at Microsoft.FSharp.Collections.Internal.IEnumerator.unfold@199.DoMoveNext(b& curr)
          at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
          at Microsoft.FSharp.Collections.Internal.IEnumerator.map@74.DoMoveNext(b& curr)
          at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
          at Microsoft.FSharp.Collections.Internal.IEnumerator.next@187[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0)
          at Microsoft.FSharp.Collections.SeqModule.oneStepTo@979[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i)
          at Microsoft.FSharp.Collections.SeqModule.action@4251-1[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i, Unit unitVar0)
          at Microsoft.FSharp.Collections.SeqModule.result@995.Invoke(Int32 i)
          at Microsoft.FSharp.Collections.Internal.IEnumerator.unfold@199.DoMoveNext(b& curr)
          at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
          at Microsoft.FSharp.Collections.SeqModule.IsEmpty[T](IEnumerable`1 source)
          at Paket.PackageResolver.getCompatibleVersions(ResolverStep currentStep, GroupName groupName, PackageRequirement currentRequirement, IDictionary`2 rootDependencies, FSharpFunc`2 getVersionsF, Boolean globalOverride, FSharpOption`1 globalStrategyForDirectDependencies, FSharpOption`1 globalStrategyForTransitives)
          at Paket.PackageResolver.step@1113(UpdateMode updateMode, GroupName groupName, FSharpOption`1 globalStrategyForTransitives, FSharpOption`1 globalStrategyForDirectDependencies, FrameworkRestrictions globalFrameworkRestrictions, FSharpFunc`2 getVersionsRaw, FSharpFunc`2 getPreferredVersionsRaw, FSharpFunc`2 getPackageDetailsRaw, FSharpSet`1 cliToolSettings, ResolverRequestQueue workerQueue, Int32 taskTimeout, TimeSpan loopTimeout, ConcurrentDictionary`2 startedGetPackageDetailsRequests, FSharpFunc`2 getPackageDetailsBlock, ConcurrentDictionary`2 startedGetVersionsRequests, FSharpOption`1 packageFilter, IDictionary`2 rootDependenciesDict, FSharpSet`1 lockedPackages, DateTime loopTime, Stage stage, StackPack stackpack, IEnumerable`1 compatibleVersions, StepFlags flags)
          at Paket.PackageResolver.Resolve(FSharpFunc`2 getVersionsRaw, FSharpFunc`2 getPreferredVersionsRaw, FSharpFunc`2 getPackageDetailsRaw, GroupName groupName, FSharpOption`1 globalStrategyForDirectDependencies, FSharpOption`1 globalStrategyForTransitives, FrameworkRestrictions globalFrameworkRestrictions, FSharpSet`1 rootDependencies, UpdateMode updateMode)
          at <StartupCode$Paket-Core>.$DependenciesFile.resolveGroup@222-1.Invoke(GroupName groupName, b _arg1)
          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.selectiveUpdate(Boolean force, FSharpFunc`2 getSha1, FSharpFunc`2 getVersionsF, FSharpFunc`2 getPackageDetailsF, FSharpFunc`2 getRuntimeGraphFromPackage, LockFile lockFile, DependenciesFile dependenciesFile, UpdateMode updateMode, SemVerUpdateMode semVerUpdateMode)
          at Paket.UpdateProcess.SelectiveUpdate(DependenciesFile dependenciesFile, FSharpOption`1 alternativeProjectRoot, UpdateMode updateMode, SemVerUpdateMode semVerUpdateMode, Boolean force)
          at Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, UpdateMode updateMode, UpdaterOptions options)
          at Paket.UpdateProcess.UpdateGroup(String dependenciesFileName, GroupName groupName, UpdaterOptions options)
          at <StartupCode$Paket-Core>.$PublicAPI.UpdateGroup@335-3.Invoke(Unit unitVar0)
          at Paket.Utils.RunInLockedAccessMode[a](String lockedFolder, FSharpFunc`2 action)
          at Fake.Runtime.FakeRuntime.restoreOrUpdate@216(FakeConfig config, String cacheDir, Dependencies paketApi, FSharpOption`1 group, VerboseLevel logLevel, String script, String groupStr, FileInfo lockFilePath, Unit unitVar0) in /home/travis/build/fsharp/FAKE/src/app/Fake.Runtime/FakeRuntime.fs:line 217
          at Fake.Runtime.FakeRuntime.paketCachingProvider(FakeConfig config, String cacheDir, Dependencies paketApi, Lazy`1 paketDependenciesFile, FSharpOption`1 group) in /home/travis/build/fsharp/FAKE/src/app/Fake.Runtime/FakeRuntime.fs:line 298
          at Fake.Runtime.FakeRuntime.prepareFakeScript(FakeConfig config) in /home/travis/build/fsharp/FAKE/src/app/Fake.Runtime/FakeRuntime.fs:line 449
          at Program.runOrBuild(RunArguments args) in /home/travis/build/fsharp/FAKE/src/app/Fake.netcore/Program.fs:line 155
  -> OperationCanceledException: The operation was canceled.
     StackTrace:
          at Paket.NetUtils._safeGetFromUrl@576-9.Invoke(Exception _arg5)
          at <StartupCode$FSharp-Core>.$Async.TryWith@1113-1.Invoke(Exception exn)
          at Microsoft.FSharp.Control.AsyncPrimitives.CallFilterThenInvoke[T](AsyncActivation`1 ctxt, FSharpFunc`2 catchFilter, ExceptionDispatchInfo edi)
          at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)
       --- End of stack trace from previous location where exception was thrown ---
          at Paket.PackageResolver.getAndReport@994[a](Int32 taskTimeout, FSharpList`1 sources, BlockReason blockReason, ResolverTaskMemory`1 mem)
          at Paket.PackageResolver.getVersionsBlock@1057-1.GenerateNext(IEnumerable`1& next)

Expected behavior

Works

Actual behavior

Error

Known workarounds

None known

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions