cannot create components with digits in the name

Bug #2069783 reported by Alfonso Sanchez-Beato
6
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-snap-with-comps
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).

Tags: craft-3043
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

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)

tags: added: craft-3043
Changed in snapcraft:
assignee: nobody → Callahan Kovacs (mr-cal)
status: New → Confirmed
Changed in snapcraft:
importance: Undecided → High
Revision history for this message
Callahan Kovacs (mr-cal) wrote :
Changed in snapcraft:
status: Confirmed → In Progress
Revision history for this message
Callahan Kovacs (mr-cal) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.