fix(clients): align client version constants to package manifests (CLI-18/21/26/29)
- .NET: add explicit <Version>0.1.2</Version> to client csproj (CLI-18) - Go: ClientVersion 0.1.0-dev -> 0.1.2 (CLI-21) - Python: __version__ 0.1.0 -> 0.1.2 to match pyproject.toml (CLI-26) - Rust: CLIENT_VERSION now sourced from env!(CARGO_PKG_VERSION) so it cannot drift from Cargo.toml (CLI-29) Verified: dotnet build clean; go build/test ok; cargo check/test/clippy clean; pytest 127 passed. P2 client version-drift cluster. Claude-Session: https://claude.ai/code/session_01DMXXvNuPekkkrTEyPNxEkW
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>true</IsPackable>
|
<IsPackable>true</IsPackable>
|
||||||
<PackageId>ZB.MOM.WW.MxGateway.Client</PackageId>
|
<PackageId>ZB.MOM.WW.MxGateway.Client</PackageId>
|
||||||
|
<Version>0.1.2</Version>
|
||||||
<Description>.NET 10 gRPC client for the MxAccessGateway service. Provides typed wrappers, retry, and a lazy-browse walker over the Galaxy Repository hierarchy.</Description>
|
<Description>.NET 10 gRPC client for the MxAccessGateway service. Provides typed wrappers, retry, and a lazy-browse walker over the Galaxy Repository hierarchy.</Description>
|
||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<!-- Only the shipped library generates XML docs (matching src/Contracts). The Cli and
|
<!-- Only the shipped library generates XML docs (matching src/Contracts). The Cli and
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package mxgateway
|
package mxgateway
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// ClientVersion identifies this Go client scaffold before package releases
|
// ClientVersion is the released semantic version of this Go client module.
|
||||||
// assign semantic versions.
|
// Keep it in sync with the module tag applied by scripts/tag-go-module.ps1.
|
||||||
ClientVersion = "0.1.0-dev"
|
ClientVersion = "0.1.2"
|
||||||
|
|
||||||
// GatewayProtocolVersion matches GatewayContractInfo.GatewayProtocolVersion
|
// GatewayProtocolVersion matches GatewayContractInfo.GatewayProtocolVersion
|
||||||
// in the shared .NET contracts.
|
// in the shared .NET contracts.
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
"""Package version information."""
|
"""Package version information."""
|
||||||
|
|
||||||
__version__ = "0.1.0"
|
__version__ = "0.1.2"
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
//! The protocol versions track the values the gateway and worker negotiate on
|
//! The protocol versions track the values the gateway and worker negotiate on
|
||||||
//! `OpenSession` and let test harnesses cross-check the wire contract.
|
//! `OpenSession` and let test harnesses cross-check the wire contract.
|
||||||
|
|
||||||
/// Semantic version of this Rust client crate. Mirrors `Cargo.toml`.
|
/// Semantic version of this Rust client crate. Sourced from `Cargo.toml` at
|
||||||
pub const CLIENT_VERSION: &str = "0.1.0-dev";
|
/// compile time so the two cannot drift.
|
||||||
|
pub const CLIENT_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
/// Public gateway gRPC protocol version this client targets.
|
/// Public gateway gRPC protocol version this client targets.
|
||||||
pub const GATEWAY_PROTOCOL_VERSION: u32 = 3;
|
pub const GATEWAY_PROTOCOL_VERSION: u32 = 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user