canonical / craft-application

The basis for *craft applications
https://canonical-craft-application.readthedocs-hosted.com/en/latest
GNU Lesser General Public License v3.0
5 stars 7 forks source link

Refactor how managed mode and provider are determined #262

Open mr-cal opened 3 months ago

mr-cal commented 3 months ago

What needs to get done

Snapcraft determines if it should run in managed mode or not and which provider to use. This is done in 2 discrete places in the codebase. This was upstreamed in https://github.com/canonical/craft-application/pull/242.

To make the code more readable and maintainable in craft-application, this code could be combined and done earlier in craft-application's execution.

Source: https://github.com/canonical/craft-application/pull/242#discussion_r1507992182

Why it needs to get done

To reduce code debt

syncronize-issues-to-jira[bot] commented 3 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2597.

This message was autogenerated