prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
2.19k stars 132 forks source link

`pixi update` not updating dependency but `pixi add ` does #1514

Closed vigneshmanick closed 2 weeks ago

vigneshmanick commented 2 weeks ago

Checks

Reproducible example

[project]
name = "myproj"
version = "0.0.1"

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.system-requirements]
linux = "3.10.0"

[tool.pixi.pypi-dependencies]
myproj = { path = ".", editable = true }

[tool.pixi.tasks]

[tool.pixi.dependencies]
pydantic = ">=2.6.4,<2.7"
numpy = ">=1.26.4,<1.27"
pandas = ">=2.2.2,<2.3"

Issue description

running pixi update pydantic doesn't update the dependency but running pixi add pydantic updates it to pydantic = ">=2.7.4,<2.8"

Expected behavior

pixi update / pixi update <dependency> should update it to the latest version that can be supported after solving

baszalmstra commented 2 weeks ago

This is intended behavior.

Pixi update updates only the lock file and leaves the pixi.toml/pyproject.toml file untouched. It will update all packages to be the highest version that still satisfies the requirements in the pixi.toml/pyproject.toml file.

What you are looking for is https://github.com/prefix-dev/pixi/issues/912.