mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 16:19:05 +08:00
fix: pin openhands-sdk to same version as other SDK packages (#772)
Add openhands-sdk==${VERSION} to the --with list in both PyPI
resolution branches (specific version and default) of
buildAgentServerCommand so all four packages are pinned to the
same versions.agentServer:
openhands-agent-server, openhands-sdk, openhands-tools, openhands-workspace
Without this pin, openhands-sdk floated to the latest release on
PyPI (a transitive dep with no version bound in the published
openhands-agent-server metadata), causing non-reproducible builds
and version skew between the banner and defaults.json.
The local-path (editable) and git-ref branches are unaffected —
they already source all packages from the same checkout/ref.
Update the two affected unit-test cases to expect the new pinned
openhands-sdk entry in the args array.
Fixes #767
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
committed by
GitHub
co-authored by
openhands
parent
f4d45e46fe
commit
c9616c1153
@@ -321,6 +321,8 @@ describe("buildAgentServerCommand", () => {
|
||||
"--from",
|
||||
"openhands-agent-server==1.23.0",
|
||||
"--with",
|
||||
"openhands-sdk==1.23.0",
|
||||
"--with",
|
||||
"openhands-tools==1.23.0",
|
||||
"--with",
|
||||
"openhands-workspace==1.23.0",
|
||||
@@ -339,6 +341,8 @@ describe("buildAgentServerCommand", () => {
|
||||
"--from",
|
||||
"openhands-agent-server==1.18.0",
|
||||
"--with",
|
||||
"openhands-sdk==1.18.0",
|
||||
"--with",
|
||||
"openhands-tools==1.18.0",
|
||||
"--with",
|
||||
"openhands-workspace==1.18.0",
|
||||
|
||||
@@ -396,6 +396,8 @@ export function buildAgentServerCommand(env = process.env) {
|
||||
"--from",
|
||||
`${DEFAULT_AGENT_SERVER_PACKAGE}==${version}`,
|
||||
"--with",
|
||||
`openhands-sdk==${version}`,
|
||||
"--with",
|
||||
`openhands-tools==${version}`,
|
||||
"--with",
|
||||
`openhands-workspace==${version}`,
|
||||
@@ -409,6 +411,8 @@ export function buildAgentServerCommand(env = process.env) {
|
||||
"--from",
|
||||
`${DEFAULT_AGENT_SERVER_PACKAGE}==${DEFAULT_AGENT_SERVER_VERSION}`,
|
||||
"--with",
|
||||
`openhands-sdk==${DEFAULT_AGENT_SERVER_VERSION}`,
|
||||
"--with",
|
||||
`openhands-tools==${DEFAULT_AGENT_SERVER_VERSION}`,
|
||||
"--with",
|
||||
`openhands-workspace==${DEFAULT_AGENT_SERVER_VERSION}`,
|
||||
|
||||
Reference in New Issue
Block a user