Skip to content

fix: correctly get project name for remote builds#2681

Open
bepri wants to merge 1 commit intomainfrom
work/no-name-attr-fix/CHARMCRAFT-690
Open

fix: correctly get project name for remote builds#2681
bepri wants to merge 1 commit intomainfrom
work/no-name-attr-fix/CHARMCRAFT-690

Conversation

@bepri
Copy link
Copy Markdown
Member

@bepri bepri commented May 1, 2026

Fixes #2598.
CHARMCRAFT-690


  • I've followed the contribution guidelines.
  • I've signed the CLA.
  • I've successfully run make lint && make test.
  • I've added or updated any relevant documentation.
  • In documents I changed, I added a meta description if one was missing.
  • I've updated the relevant release notes.

@bepri bepri requested a review from a team May 1, 2026 20:40
@bepri bepri self-assigned this May 1, 2026
@bepri bepri requested review from a team and lengau as code owners May 1, 2026 20:40
Comment on lines +110 to +111
project_service = cast("ProjectService", self._services.project)
project = cast("models.Charm", project_service.get())
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The double-cast here was sadly necessary as self._services.project was returning AppService rather than ProjectService, and then .get() was returning craft_application.models.Project rather than Charmcraft's.

Copy link
Copy Markdown
Contributor

@medubelko medubelko left a comment

Choose a reason for hiding this comment

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

Note LGTM.

@bepri bepri mentioned this pull request May 1, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote build fails when getting project name

2 participants