publish: warn before build when --replace finds no existing release ai:claude-sonnet-4-6 #66
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
nagonag
nagonag/ignore
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
heiko/gogogo!66
Loading…
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When
--replaceis set but no Forgejo release exists for the tag yet,gogogo now warns before starting the build rather than after a full
(wasted) build.
Changes
warnIfNothingToReplace: pre-build check that callsGetReleaseByTagwhen
--replaceis active and all network guards pass; logs a warningand continues as a fresh publish
warnedReplaceNoopfield suppresses the redundant post-build"had no effect" warning when the pre-build check already fired
newForgejoCliinjectable var: both the pre-build check andpublishReleasenow share the same client construction path, makingboth testable without a live server
TestWarnIfNothingToReplace_WarnsWhenNoReleaseandTestWarnIfNothingToReplace_SilentWhenReleaseExistsWhat is NOT blocked
Re-publishing to an existing release without
--replace(e.g. adding anew Debian revision) is unaffected — the check only fires when
--replaceis explicitly set.
(co)authored by ai:claude-sonnet-4-6