Pkg.jl icon indicating copy to clipboard operation
Pkg.jl copied to clipboard

upgradable marker sometimes inaccurate

Open rapus95 opened this issue 2 years ago • 12 comments

marker shows that there is a new version to update to, but it still doesn't update.

(@testing) pkg> st
Status `C:\Users\Aaron\.julia\environments\testing\Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.9
⌃ [e9467ef8] GLMakie v0.6.9
Info Packages marked with ⌃ have new versions available

(@testing) pkg> up GLMakie
    Updating registry at `C:\Users\Aaron\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
  No Changes to `C:\Users\Aaron\.julia\environments\testing\Project.toml`
  No Changes to `C:\Users\Aaron\.julia\environments\testing\Manifest.toml`

(@testing) pkg> up
    Updating registry at `C:\Users\Aaron\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
  No Changes to `C:\Users\Aaron\.julia\environments\testing\Project.toml`
  No Changes to `C:\Users\Aaron\.julia\environments\testing\Manifest.toml`

rapus95 avatar Jul 30 '22 13:07 rapus95

julia> versioninfo()
Julia Version 1.8.0-rc3
Commit 33f19bcbd2 (2022-07-13 19:10 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × AMD Ryzen 5 3600 6-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
  Threads: 1 on 12 virtual cores

rapus95 avatar Jul 30 '22 13:07 rapus95

See https://discourse.julialang.org/t/julia-1-8-how-do-i-upgrade-packages-with-new-versions-available/84573/2

I think we need to figure out how to explain that succinctly in the tip that shows up

IanButterworth avatar Jul 30 '22 13:07 IanButterworth

Perhaps we could do:

(@testing) pkg> up GLMakie
    Updating registry at `C:\Users\Aaron\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
  No Changes to `C:\Users\Aaron\.julia\environments\testing\Project.toml`
  No Changes to `C:\Users\Aaron\.julia\environments\testing\Manifest.toml`

    Info: There is a newer version of GLMakie available, but updating it would 
          require downgrading more packages than would be upgraded. 
          To force installation use `pkg> add [email protected]`

But only in update when the package is specified.

IanButterworth avatar Jul 30 '22 16:07 IanButterworth

@IanButterworth sadly that's not all. It's even impossible to upgrade:

(@testing) pkg> st
Status `C:\Users\Aaron\.julia\environments\testing\Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.9
⌃ [e9467ef8] GLMakie v0.6.9
Info Packages marked with ⌃ have new versions available

(@testing) pkg> add [email protected]
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package AlgebraOfGraphics [cbdf2221]:
 AlgebraOfGraphics [cbdf2221] log:
 ├─possible versions are: 0.1.0-0.6.9 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.6.9
 ├─restricted by compatibility requirements with Observables [510215fc] to versions: 0.4.0-0.6.9 or uninstalled, leaving only versions: 0.4.0-0.6.9
 │ └─Observables [510215fc] log:
 │   ├─possible versions are: 0.2.0-0.5.1 or uninstalled
 │   └─restricted by compatibility requirements with GLMakie [e9467ef8] to versions: 0.5.1
 │     └─GLMakie [e9467ef8] log:
 │       ├─possible versions are: 0.0.1-0.6.12 or uninstalled
 │       └─restricted to versions 0.6.12 by an explicit requirement, leaving only versions 0.6.12
 ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: [0.1.0-0.1.2, 0.5.3-0.6.9] or uninstalled, leaving only versions: 0.5.3-0.6.9
 │ └─GeometryBasics [5c1252a2] log:
 │   ├─possible versions are: 0.1.0-0.4.2 or uninstalled
 │   ├─restricted by compatibility requirements with GLMakie [e9467ef8] to versions: 0.4.1-0.4.2
 │   │ └─GLMakie [e9467ef8] log: see above
 │   └─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.4.2
 │     └─Makie [ee78f7c6] log:
 │       ├─possible versions are: 0.9.0-0.17.12 or uninstalled
 │       └─restricted by compatibility requirements with GLMakie [e9467ef8] to versions: 0.17.12
 │         └─GLMakie [e9467ef8] log: see above
 ├─restricted by compatibility requirements with Makie [ee78f7c6] to versions: [0.1.0-0.3.1, 0.6.7-0.6.9] or uninstalled, leaving only versions: 0.6.7-0.6.9
 │ └─Makie [ee78f7c6] log: see above
 └─restricted by compatibility requirements with GridLayoutBase [3955a311] to versions: 0.1.0-0.3.1 or uninstalled — no versions left
   └─GridLayoutBase [3955a311] log:
     ├─possible versions are: 0.1.0-0.9.0 or uninstalled
     ├─restricted by compatibility requirements with Observables [510215fc] to versions: 0.7.5-0.9.0 or uninstalled
     │ └─Observables [510215fc] log: see above
     └─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.9.0
       └─Makie [ee78f7c6] log: see above

rapus95 avatar Jul 30 '22 21:07 rapus95

What's the output of st --outdated?

IanButterworth avatar Jul 30 '22 21:07 IanButterworth

@IanButterworth

(@testing) pkg> st --outdated
Status `C:\Users\Aaron\.julia\environments\testing\Project.toml`
⌃ [e9467ef8] GLMakie v0.6.9 (<v0.6.12)

rapus95 avatar Jul 30 '22 23:07 rapus95

Looks like a bug. Are you able to share the Project.toml?

IanButterworth avatar Jul 31 '22 05:07 IanButterworth

Is there any package in the environment that is upper bounding GLMakie to that version? If not, then the upgradable marker is shown.

KristofferC avatar Jul 31 '22 06:07 KristofferC

@IanButterworth it's already an MWE, this is the entire project.toml:

[deps]
AlgebraOfGraphics = "cbdf2221-f076-402e-a563-3d30da359d67"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"

Project.txt Manifest.txt it didn't let me upload .toml files -.-

@KristofferC there are no explicit bounds. According to the report I made above, the only thing upper-bounding GLMakie is the existence of AlgebraOfGraphics because there's no version of it that's compatible to the newer versions of GLMakie. But in that case there should be the yellow marker which says that it's constrained by some other package I guess.

rapus95 avatar Jul 31 '22 12:07 rapus95

FYI, the conflict appears to be fixed with the release of AlgebraOfGraphics 0.6.10

But I do think there's a bug here

(jl_9jYE5C) pkg> add [email protected] GLMakie
...

(jl_9jYE5C) pkg> pin AlgebraOfGraphics
...

(jl_9jYE5C) pkg> st
Status `/private/var/folders/_6/1yf6sj0950vcg4t91m9ltb5w0000gn/T/jl_9jYE5C/Project.toml`
⌃ [cbdf2221] AlgebraOfGraphics v0.6.9 ⚲
⌃ [e9467ef8] GLMakie v0.6.9
Info Packages marked with ⌃ have new versions available

(jl_9jYE5C) pkg> st --outdated
Status `/private/var/folders/_6/1yf6sj0950vcg4t91m9ltb5w0000gn/T/jl_9jYE5C/Project.toml`
⌃ [cbdf2221] AlgebraOfGraphics v0.6.9 ⚲ (<v0.6.10)
⌃ [e9467ef8] GLMakie v0.6.9 (<v0.6.12)(jl_9jYE5C) pkg> add [email protected] GLMakie

(jl_9jYE5C) pkg> add [email protected]
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package GridLayoutBase [3955a311]:
 GridLayoutBase [3955a311] log:
 ├─possible versions are: 0.1.0-0.9.0 or uninstalled
 ├─restricted by compatibility requirements with AlgebraOfGraphics [cbdf2221] to versions: 0.6.0-0.7.10
 │ └─AlgebraOfGraphics [cbdf2221] log:
 │   ├─possible versions are: 0.1.0-0.6.10 or uninstalled
 │   └─restricted to versions 0.6.9 by an explicit requirement, leaving only versions 0.6.9
 ├─restricted by compatibility requirements with Observables [510215fc] to versions: 0.7.5-0.9.0 or uninstalled, leaving only versions: 0.7.5-0.7.10
 │ └─Observables [510215fc] log:
 │   ├─possible versions are: 0.2.0-0.5.1 or uninstalled
 │   └─restricted by compatibility requirements with GLMakie [e9467ef8] to versions: 0.5.1
 │     └─GLMakie [e9467ef8] log:
 │       ├─possible versions are: 0.0.1-0.6.12 or uninstalled
 │       └─restricted to versions 0.6.12 by an explicit requirement, leaving only versions 0.6.12
 └─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.9.0 — no versions left
   └─Makie [ee78f7c6] log:
     ├─possible versions are: 0.9.0-0.17.12 or uninstalled
     └─restricted by compatibility requirements with GLMakie [e9467ef8] to versions: 0.17.12
       └─GLMakie [e9467ef8] log: see above

@KristofferC IIUC in this case GLMakie should have a , I believe?

IanButterworth avatar Jul 31 '22 22:07 IanButterworth

yes, that MWE is fixed because the new one is compatible to the current Makie version. But the general problem persists. And yes I'd also say that it should get the yellow marker.

rapus95 avatar Aug 01 '22 00:08 rapus95

I'm seeing this too, though I have a ton of packages in my default Project.toml

vancleve avatar Sep 06 '22 01:09 vancleve