cannot create components with digits in the name
Bug #2069783 reported by
Alfonso Sanchez-Beato
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Snapcraft |
Fix Committed
|
High
|
Callahan Kovacs | ||
Bug Description
snapcraft.yaml with this content:
name: abeato-
version: 1.0
summary: Snap with components
description: A snap that defines components
base: core24
confinement: strict
components:
comp1:
type: test
produces error:
$ snapcraft
Bad snapcraft.yaml content:
- Component names can only use ASCII lowercase letters and hyphens (in field 'components')
while it is a valid name for snapd (validation is the same as for snap names).
| Changed in snapcraft: | |
| importance: | Undecided → High |
To post a comment you must log in.

Thanks for the report. I purposefully restricted numbers from component names. I thought I did this based on SD149 but I no longer can find that requirement in the spec.
The required work is straightforward:
1. Update craft-parts to allow numbers in namespaced partitions.
2. Update snapcraft to use the same validation for snap names and component names.
(CRAFT-3043)