Skip to content

Docs for up is wrong #3005

@KristofferC

Description

@KristofferC

From the docs

If no positional argument is given, update all packages in the manifest if mode is PKGMODE_MANIFEST and packages in both manifest and project if mode is PKGMODE_PROJECT.

This doesn't really make sense because packages in the project is also in the manifest. And up -m also updates packages that are in the project:

(jl_xPuOsW) pkg> up -m
    Updating registry at `~/.julia/registries/General.toml`
    Updating `/tmp/jl_xPuOsW/Project.toml`
  [91a5bcdd]  Plots v1.25.3  v1.25.11
    Updating `/tmp/jl_xPuOsW/Manifest.toml`
  [28b8d3ca]  GR v0.62.1  v0.64.0
...

From the REPL doc on up:

Update pkg within the constraints of the indicated version
specifications. These specifications are of the form @1, @1.2 or @1.2.3, allowing
any version with a prefix that matches, or ranges thereof, such as @1.2-3.4.5.

(jl_C8ktCX) pkg> up Plots@1.25.3
    Updating registry at `~/.julia/registries/General.toml`
    Updating `/tmp/jl_C8ktCX/Project.toml`
  [91a5bcdd]  Plots v1.25.3  v1.25.11
...

@ does nothing.

It is also a bit strange that the docs for the API mode and REPL mode are so different.

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