Skip to content

fix: preserve installed modules on package upgrade/downgrade#1705

Merged
dengbo11 merged 1 commit into
OpenAtom-Linyaps:masterfrom
reddevillg:fix_install
Jun 29, 2026
Merged

fix: preserve installed modules on package upgrade/downgrade#1705
dengbo11 merged 1 commit into
OpenAtom-Linyaps:masterfrom
reddevillg:fix_install

Conversation

@reddevillg

Copy link
Copy Markdown
Collaborator

When upgrading or downgrading a package via command install, only the modules explicitly requested by the user were installed, so previously installed modules (e.g. develop) were silently dropped from the new version. Collect the locally installed modules from the old reference and include them in the install set so they are carried over to the new version.

When upgrading or downgrading a package via command install, only the
modules explicitly requested by the user were installed, so previously
installed modules (e.g. develop) were silently dropped from the new
version. Collect the locally installed modules from the old reference
and include them in the install set so they are carried over to the new
version.

Signed-off-by: reddevillg <reddevillg@gmail.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the RefInstallationAction::install process to ensure that during upgrade or downgrade operations, any previously installed local modules are retained and requested for installation. It also introduces deduplication logic when building the list of modules to install. Corresponding unit tests have been added to verify that downgrades keep installed modules and correctly deduplicate runtime fallbacks. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 52.94118% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../src/linglong/package_manager/ref_installation.cpp 52.94% 0 Missing and 8 partials ⚠️
Files with missing lines Coverage Δ
.../src/linglong/package_manager/ref_installation.cpp 35.34% <52.94%> (+2.51%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@reddevillg reddevillg requested a review from dengbo11 June 29, 2026 02:55
@deepin-ci-robot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dengbo11, reddevillg

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dengbo11 dengbo11 merged commit 3606ccb into OpenAtom-Linyaps:master Jun 29, 2026
17 checks passed
@reddevillg reddevillg deleted the fix_install branch June 29, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants