Reconcile Gitea distribution with current alpha behavior and release tooling

Hop-State: A_06FN55REVAR7VQG4BWJBCD8
Hop-Proposal: R_06FN55QTEWKH16NSR59YJYG
Hop-Task: T_06FN3MBF98GWD4NA5PA1RWG
Hop-Attempt: AT_06FN55BQ80H2S8WHNDD24G0
This commit is contained in:
Hop
2026-07-11 12:10:59 -07:00
parent 23a4891099
commit de99aad4d4
28 changed files with 1565 additions and 21 deletions
+18
View File
@@ -458,6 +458,24 @@ func TestCLILandConflictReturnsAutomaticReconciliation(t *testing.T) {
}
}
func TestCLIVersionUsesReleaseLinkerValue(t *testing.T) {
previous := Version
Version = "v1.2.3"
t.Cleanup(func() { Version = previous })
var stdout, stderr bytes.Buffer
if code := RunCLI([]string{"version", "--json"}, &stdout, &stderr); code != 0 {
t.Fatalf("version exited %d: %s", code, stderr.String())
}
var response map[string]any
if err := json.Unmarshal(stdout.Bytes(), &response); err != nil {
t.Fatal(err)
}
if got, _ := response["version"].(string); got != "1.2.3" {
t.Fatalf("version = %q, want 1.2.3", got)
}
}
func TestOpenProjectInsideFinalValidationDoesNotReacquireAcceptanceLock(t *testing.T) {
ctx := context.Background()
service, _ := newTestProject(t, map[string]string{"base.txt": "base\n"})