canonical / canonical/craft-application

Add a way for applications to customize the `InitService`

Open
#552 1 comment 0 reactions 0 assignees View on GitHub
Type: Enhancement
Dominant language
Python
Stars
14
Forks
29
Avg merge
2d 2h
Merged PRs (30d)
13

Description

### What needs to get done

The `InitService` should provide a clean way for applications to:
1. Validate the project name and other variables that will go into the template
2. Emit a message unique to each template

### Why it needs to get done

1. If the user provides an invalid name, the project will fail to build
2. Rockcraft provides different documentation links, depending on the template

Contributor guide

Open the contributing guide

Research direction

Start by locating the InitService implementation and its existing template-generation tests. Trace how project variables and template-specific output are currently handled, then identify the extension point needed for validation and per-template messages. Done means applications can customize both behaviors and the relevant tests cover them.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.