fix: set branch prefixes main:5/develop:4 and use Major.Minor.50000.0 as local fallback#78
Open
TomProkop wants to merge 2 commits into
Open
fix: set branch prefixes main:5/develop:4 and use Major.Minor.50000.0 as local fallback#78TomProkop wants to merge 2 commits into
TomProkop wants to merge 2 commits into
Conversation
… as local fallback Adopts the priority ordering from #77 (production outranks develop) and fixes the companion problem where local/untracked builds (fallback) could not be deployed to a personal devbox already hydrated with develop CI artifacts. The fallback build number 50000 is chosen because: - develop:4 max ever (prefix 4 + Dec 2099) = 49912 < 50000 - main:5 min ever (prefix 5 + any Jan) = 50001 > 50000 So a local build always beats a develop artifact, but a main CI build always beats the local fallback — no deployment deadlocks in either direction. The fallback also now correctly uses the project's Major.Minor instead of the hardcoded 0.0 prefix, which caused spurious downgrades for any project with Version >= 1.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…roduction The 0.0 Major.Minor is intentional: it marks a build as local/untracked and ensures the environment's version guard will always reject it if any real CI artifact is already installed. Local builds should not produce legit-looking CI version numbers. The branch prefix ordering from the previous commit is unchanged: develop:4 main:5 (master:5) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts the priority ordering from #77 (production outranks develop).
Changes
Branch prefix ordering
developmain/masterFallback stays
0.0.20000.0The
0.0Major.Minor is intentional:Supersedes #77