← Back to issue list

Relocate the global state directory

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1782783
Type
issue
State
closed
Author
~sergiusens
Labels
18.10-build-vm
Created
Updated
Closed

Current evaluation

Resolved by snapcore/snapcraft#2186 (commit b41224289), which parametrized the global state file path instead of hardcoding it under the project’s snap directory.

Resolution: closed resolved

Reason: The maintainer linked resolving PR snapcore/snapcraft#2186 in the closing comment. Commit b41224289, titled "state: allow parametrization of the global state file (#2186)," made the state path configurable.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The global state directory is now hardocded to <project-dir>/snap, this does not scale for the build VM work, nor is it friendly to on-disk state changing logic.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Resolved by snapcore/snapcraft#2186 (commit b41224289), which parametrized the global state file path instead of hardcoding it under the project’s snap directory.
stealth/space-bunny-alpha — closed resolved The hard-coded global state path was made configurable in merged PR canonical/snapcraft#2186 (commit b41224289), enabling relocation for build-VM use.
stealth/space-bunny-alpha — closed stale No implementation or replacement is documented; relocation remained unresolved and the request was closed as stale after about eight years without activity.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned or superseded. The hardcoded global state directory path was flagged as unscalable for build VMs and on-disk state management, but no fix or migration was implemented.
qwen/qwen3.6-35b-a3b — — The request to relocate the global state directory was closed without resolution. With zero comments and over eight years of inactivity, the item appears abandoned or superseded by newer project developments.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. The hardcoded global state directory path was abandoned due to inactivity and later superseded by build VM improvements.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The hardcoded global state directory path remains unchanged, indicating the request was abandoned. No implementation or merge details were provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2186 (confidence 100%)

    The linked PR was incorporated as commit b41224289 and directly addressed the hardcoded global state path.

Related issues

Issue Project State Summary Similarity
#2419 project: state file path change snapcraft merged Merged the project state-file path change in snapcore/snapcraft#2419 (commit e258a2c53), resolving Launchpad bug #1806746.
75%
#1551849 Get rid of global state snapcraft (launchpad) closed Global lifecycle state was replaced with a Project instance passed to commands in ubuntu-core/snapcraft#434.
72%