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:
- The user did not explicitly specify in some way which branch of
flet-build-template to use;
- 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
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:
flet-build-templateto use;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