← Back to issue list

Allow slashes in partition names

View original Github issue

Metadata

Project
craft-parts
Number
#999
Type
issue
State
closed
Author
upils
Labels
—
Created
Updated
Closed

Current evaluation

Implemented in PR #1002 (commit c2e41898): partition names now allow slashes, with updated conflict validation and path identification.

Resolution: closed resolved

Reason: Issue #999 was resolved by merged PR #1002, committed as c2e41898. The change updates partition validation and path detection while detecting slash-related conflicts such as test/foo/bar versus test/foo-bar.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done 1. Update validation to allow slashes 2. Update and refactor `validate_partition_names()` to detect new possible conflicts. 3. Update `HAS_PARTITION_REGEX` and the partition identification logic in `utils/path_utils.py`. Example: `test/foo/bar` and `test/foo-bar` should conflicts. ### Why it needs to get done To allow slashes in partition names and enable imagecraft creating partitions named `volume/pc/efi`. See https://docs.google.com/document/d/12LxcUIUEoXvzK619CvK9eHU_8n_rEKnLPEC4clsriXA/edit?pli=1&tab=t.0#heading=h.fff0e8cg9w1x

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Implemented in PR #1002 (commit c2e41898): partition names now allow slashes, with updated conflict validation and path identification.
stealth/space-bunny-alpha — closed resolved Implemented in PR #1002, merged as commit c2e41898, enabling slash-containing partition names and updating partition validation and path detection.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to allow slashes in partition names and update validation logic was abandoned, with only automated Jira sync comments present.
qwen/qwen3.6-35b-a3b — — Closed without implementation. Partition validation and path utilities were not updated to allow slashes. The request was synced to Jira but ultimately abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation. Only auto-generated Jira sync comments were posted. The request to allow slashes in partition names and update validation logic remains unresolved.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. No PRs were merged. The request to allow slashes in partition names and update validation logic was abandoned or deferred, with only automated Jira sync comments logged prior to closure.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-parts#1002 (confidence 100%)

    PR #1002 implemented slash support; commit c2e41898 is the resolving change.

Related issues

Issue Project State Summary Similarity
#1002 feat: Allow slashes in partition names craft-parts merged Merged as c2e41898, allowing slashes in partition names and fixing #999 (CRAFT-4064).
82%
#789 Allow hyphens in partition names craft-parts closed Hyphens enabled in partition names and namespace/partition overlap conflicts validated. Landed via merged PR canonical/craft-parts#800 (commit 184d5142); conflict detection lives in _detect_conflicts().
71%