You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(updatecheck): require configured repo for deb/rpm commands; surface promoted go-install version (Spec 079 US2)
Cross-model review round 4 fixes:
- deb/rpm detection additionally requires the MCPProxy repository config
(/etc/apt/sources.list.d/mcpproxy.list resp.
/etc/yum.repos.d/mcpproxy.repo, as written by the documented setup).
A standalone .deb/.rpm downloaded from a GitHub release is dpkg/rpm-
owned but has no apt/dnf upgrade candidate, so the channel commands
would be no-ops; those installs now degrade to unknown and get the
release-page guidance (FR-009).
- /api/v1/info top-level version now prefers the update checker's
current version: identical for packaged builds, but for go-install
builds the checker promotes the build-info module version while the
ldflags default would render 'development' on status/Web UI next to a
real go-install update command.
assert.Equal(t, "homebrew", updateInfo["install_channel"], "update info should carry the detected install channel")
697
697
assert.Equal(t, "brew upgrade mcpproxy", updateInfo["update_command"], "update info should carry the channel update command when an update is available")
698
+
699
+
// The top-level version must match the checker's current version: they
700
+
// are identical for packaged builds, and for go-install builds the
701
+
// checker promotes the build-info module version while the ldflags
702
+
// default would read "development" (Spec 079 US2).
703
+
assert.Equal(t, "v1.0.0", data["version"], "top-level version should prefer the checker's current version")
698
704
}
699
705
700
706
// MockControllerWithUpdateInfo extends MockServerController with update info
0 commit comments