ERROR: Unsatisfiable requirements detected and has no known versions!

I am getting the same error in my case Xnumber is a dependency of SHbundle and both of them are unregistered.

ERROR: Unsatisfiable requirements detected for package Xnumber [fdc6275c]:
 Xnumber [fdc6275c] log:
 ├─Xnumber [fdc6275c] has no known versions!
 └─restricted to versions * by SHbundle [685399a2] — no versions left
   └─SHbundle [685399a2] log:
     ├─possible versions are: 0.1.0 or uninstalled
     └─SHbundle [685399a2] is fixed to version 0.1.0

Also I have added Xnumber to SHbundle but when i run the following command in gitlab-ci i get the above error.

- |
      julia --project=docs -e '
        using Pkg
        Pkg.Registry.update()
        Pkg.develop(PackageSpec(path=pwd()))
        Pkg.instantiate()
        using Documenter: doctest
        using SHbundle
        doctest(SHbundle)
        include("docs/make.jl")'

I don’t know how much the below answer is relevant to my case as could not understand the solution.

https://discourse.julialang.org/t/package-manager-resolve-complaining-of-unsatisfiable-requirements-due-to-no-known-versions/23778?u=vyush_agarwal

Link to gitlab repos:
SHbundle
Xnumber => https://gitlab.com/vyush/Xnumber.jl

My understanding is that you are trying to execute the above command in the SHbundle folder.

The problem is that Pkg.instantiate() is not going to work since it does not know how to find Xnumber.

Before instantiating you should Pkg.develop(url="https://gitlab.com/vyush/Xnumber.jl") first.

Try this:

        using Pkg
        Pkg.Registry.update()
        Pkg.develop(url="https://gitlab.com/vyush/Xnumber.jl")
        Pkg.develop(PackageSpec(path=pwd())) # I'm assuming we are in the SHbundle directory
        Pkg.instantiate()
        using Documenter: doctest
        using SHbundle
        doctest(SHbundle)
        include("docs/make.jl")
1 Like

Thank you. This does solve the error but why does the

Pkg.develop(PackageSpec(path=pwd())) 

not take the path to Xnumber from the manifest.yml

You are pointing at the docs project, so the relevant Manifest is docs/Manifest.toml · master · Vyush Agarwal / SHbundle.jl · GitLab

I do not see the path to Xnumber there. Also it is my rough understanding that Manifest.toml is mainly used by Pkg.instantiate(), but I may be wrong on this.

1 Like

Okay, that makes sense.Thanks.