mudler / mudler/luet

Add support for downgrade and upgrade of packages with different heuristics

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/funtoo enhancement
Dominant language
Go
Stars
307
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Currently luet upgrade upgrades a system to the latest available packages, not taking care of downgrades of any sort. E.g. if a package is downgraded from a repository, the client will refuse to downgrade to that version, but will prefer the local installed one.

The idea is to implement a command like luet upgrade --purge/--sync for:

  • permit downgrade of packages related to a removed repository (example: foo-1.0@removed-repo and foo-0.2.0@active-repo)

  • permit downgrade of packages no more available from a specific repository for an error server side

  • permit to upgrade of packages with the same version but with different build date (an option could be --sync-by-date)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the luet upgrade command and trace how installed and repository package versions are selected, including the proposed --purge/--sync and --sync-by-date heuristics. Reproduce the listed repository-removal and same-version/different-build-date cases, then verify that each requested downgrade or upgrade behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.