Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GOMC_REST_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.6.0
v1.7.0
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ boundary is the trust boundary here.

## Versions

This package bundles a pinned `gomc-rest` binary (currently **v1.6.0**, set in
This package bundles a pinned `gomc-rest` binary (currently **v1.7.0**, set in
`GOMC_REST_VERSION`) that must satisfy `gomc-rest-client`'s
`MINIMUM_SUPPORTED_GOMC_REST_VERSION`; `launch()` verifies this on startup. The
`gomc-rest-client` dependency is capped (`>=0.10.0,<0.11`) so a future client
that raises its minimum server version can't be installed without also bumping
the bundled binary.
`gomc-rest-client` dependency is capped (`>=1.0,<2`) so a breaking client
release can't be pulled in silently. If a 1.x client ever requires a newer
server than the bundled one, `launch()` fails at startup with a clear error.

## Development

Expand Down
9 changes: 5 additions & 4 deletions README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ finally:
## バージョン

同梱するgomc-restのバージョンは `GOMC_REST_VERSION` で固定しています
(現在は **v1.6.0**)。`launch()` は起動時に、サーバーが
(現在は **v1.7.0**)。`launch()` は起動時に、サーバーが
`gomc-rest-client` の `MINIMUM_SUPPORTED_GOMC_REST_VERSION` を満たしているか
確認します。

`gomc-rest-client` の依存バージョンも `>=0.10.0,<0.11` に制限しています。
これにより、より新しいサーバーを必要とするクライアントが意図せず
インストールされることを防ぎます。
`gomc-rest-client` の依存バージョンは `>=1.0,<2` に制限しています
(破壊的変更はメジャーバージョンで入るため)。仮に 1.x のクライアントが
同梱サーバーより新しいバージョンを要求するようになった場合は、
`launch()` が起動時に明確なエラーで停止します。

## 開発者向け

Expand Down
5 changes: 5 additions & 0 deletions checksums/v1.7.0.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
c8cf8beab397aacb09a11d80bd32d81b12e43cd22bd0b7885effdbeb9c2ddbc7 gomc-rest.exe
94080d929c15dc5d4b6af3bd02448bf08f535d6a55b224c8bc4793696cf1da33 gomc-rest-linux-amd64
6614ec9a9dc3a8c9ecfa01b7ce56ce1d2f89a2f0e06711eac51001cbc0fe70c4 gomc-rest-linux-arm64
55e7aa929149d2ad81c37b0eb08d087821dee77faa4ecbc5e8bb6a97ff44a7c3 gomc-rest-darwin-amd64
a4059a9303a06bda79e08ebc34224514a6899dd58a1a099605ed66d7a0597181 gomc-rest-darwin-arm64
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ keywords = ["mitsubishi", "plc", "mc-protocol", "slmp", "gomc-rest"]
# HTTP layer is delegated to gomc-rest-client (pattern A). We only add the
# bundled-binary + subprocess lifecycle on top.
dependencies = [
# Cap the client to a range known to accept the bundled server version
# (GOMC_REST_VERSION). A future client that raises its minimum server
# version must not be pulled in without bumping the bundled binary too.
"gomc-rest-client>=0.10.0,<0.11",
# Cap at the next major: the client follows semver from 1.0, so breaking
# API changes land in 2.x. If a 1.x release raises its minimum server
# version above the bundled one, launch() still fails loudly at startup
# via is_supported_version(), which is the backstop for that case.
"gomc-rest-client>=1.0,<2",
]

[project.urls]
Expand Down
Loading