Skip to content

feature: Automatically retrieve the highest available version of flet-build-template #6306

Description

@Creeper19472

Duplicate Check

Describe the requested feature

For some time now, Flet's behavior in finding and fetching build templates has been disastrous. While this disastrous situation could be avoided with human intervention, as we've seen, it's common for flet-build-template to lag behind the development version iterations. Whenever this happens, developers have to manually check the upstream code repository to see what's wrong and—if they want to build their applications using the latest development version—fork a repository and manually create the missing branches.

This is a disaster for both upstream and downstream developers. On the one hand, given the current situation, we cannot expect upstream developers to always remember to add branches corresponding to new versions; on the other hand, we cannot expect downstream developers to fork a repository and manually fix the problem every time.

Considering that flet-build-template hasn't been updated much in recent versions, I think it's quite possible that we can implement an automatic retrieval system that allows searching downwards when the default query branch doesn't exist, until the first usable branch is found.

Suggest a solution

This mechanism is triggered only when all of the following conditions are met:

  1. The user did not explicitly specify in some way which branch of flet-build-template to use;
  2. Flet failed to find a branch corresponding to the version number based on the default behavior.

If the above conditions are met, Flet will attempt to parse the names of all branches in the target repository and match those branches that conform to the naming pattern vX.Y.Z.

Flet will explicitly display a notification to remind developers to update the required branch when appropriate, but in this case, the branch with the latest version number will be used for the build.

Screenshots

No response

Additional details

No response

Metadata

Metadata

Assignees

Labels

feature requestSuggestion/Request for additional feature

Type

No type

Projects

Status
✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions