← Back to issue list

state: allow parametrization of the global state file

View original Github issue

Metadata

Project
snapcraft
Number
#2186
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #2186 as commit b41224289, replacing the hard-coded global state-file path with a project parameter to support future relocation.

Resolution: closed resolved

Reason: PR #2186 was approved and merged into master as commit b41224289. The change removes the hard-coded global state-file location and makes it a project parameter.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Refactor so that the global state file is not hard coded but part of the project instead. This allows for future relocations. LP: #1782783 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #2186 as commit b41224289, replacing the hard-coded global state-file path with a project parameter to support future relocation.
stealth/space-bunny-alpha — closed resolved Merged PR #2186 as commit b41224289, replacing the hard-coded global state file path with a configurable project parameter to enable future relocations.
qwen/qwen3.6-35b-a3b — — Merged into master. Refactors the global state file from hardcoded to parametrized to enable future relocations. Approved by reviewer, passed CI, and updated 11 files with a minor coverage increase.
qwen3.6-35b-a3b-mtp-q6 — — Merged into master. Refactored the global state file from hardcoded to project-parameterized to enable future relocations. Passed static and unit tests with 93.65% diff coverage and a minor overall coverage increase. Resolves LP #1782783.

Update history

No update history recorded yet.

Related work

  • Related To: Launchpad#1782783 (confidence 100%)

    Original Launchpad bug linked in the PR description.

Related issues

No related issues found above the similarity threshold.