Skip to content

Conversation

@alesancor1
Copy link
Member

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint && make test?

This PR allows rockcraft to produce Rocks with less than three characters in the name by removing such restriction in rockcraft and using the one from parent class in craft-application. To prevent the resulting pebble layer to fail the validation, a -rockcraft- prefix is automatically added to the layer name.

Related PR

canonical/craft-application#894

Context: Although rockcraft itself will allow names with a single character, it will fail the validation for title. This is because when title is not set, Rockcraft will set the title value to be equal to the name. However, title has a min_length of 2 while name has a min length of 1. The PR above aims to fix this situation.

@alesancor1 alesancor1 requested a review from tigarmo as a code owner September 5, 2025 15:50
Copy link
Collaborator

@tigarmo tigarmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@tigarmo tigarmo requested a review from a team September 8, 2025 17:59
@tigarmo tigarmo requested a review from lengau September 11, 2025 13:22
Copy link
Collaborator

@tigarmo tigarmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Copy link
Collaborator

@lengau lengau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tigarmo tigarmo added the PR: Squash This PR should be a squash commit. label Sep 11, 2025
@tigarmo tigarmo merged commit 5a7a978 into canonical:main Sep 11, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Squash This PR should be a squash commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants