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
Trying to update the dependency to the latest version fails. I tried in multiple ways, but the only way I got it to work is by specifying the commit:
$ go get github.com/kurtosis-tech/kurtosis/api/golang@84e2fe2
go: downloading github.com/kurtosis-tech/kurtosis/api/golang v1.4.4-0.20250116034716-84e2fe2b35f5
go: downloading github.com/kurtosis-tech/kurtosis v1.4.2-0.20250116034716-84e2fe2b35f5
go: upgraded github.com/kurtosis-tech/kurtosis/api/golang v1.4.3 => v1.4.4-0.20250116034716-84e2fe2b35f5
I tried with @v2.1.0:
$ go get github.com/kurtosis-tech/kurtosis/api/[email protected]
go: github.com/kurtosis-tech/kurtosis/api/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/kurtosis-tech/kurtosis/api/golang/v2")
@v2.1.0, and appending a /v2 to the url:
$ go get github.com/kurtosis-tech/kurtosis/api/golang/[email protected]
go: github.com/kurtosis-tech/kurtosis/api/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/kurtosis-tech/kurtosis/api/golang/v2")
with the release tag (2.1.0):
$ go get github.com/kurtosis-tech/kurtosis/api/[email protected]
go: module github.com/kurtosis-tech/[email protected] found (v1.4.2-0.20250116034716-84e2fe2b35f5), but does not contain package github.com/kurtosis-tech/kurtosis/api/golang
Deleting the dependency and adding it again also doesn't work: it just adds the old v1.4.3 version to go.mod.
Desired behavior
I expected that running:
go get -u github.com/kurtosis-tech/kurtosis/api/golang
would update the Go API to the latest version. Using it after running that returns:
failed to initialize kurtosis context: An error occurred validating the Kurtosis engine API version
--- at /Users/mega/.asdf/installs/golang/1.23.4/packages/pkg/mod/github.com/kurtosis-tech/kurtosis/api/[email protected]/engine/lib/kurtosis_context/kurtosis_context.go:88 (NewKurtosisContextFromLocalEngine) ---
Caused by: An API version mismatch was detected between the running engine version '2.1.0' and the engine version this Kurtosis SDK library expects, '1.4.3'. You should:
1) upgrade your Kurtosis CLI to latest using the instructions at https://docs.kurtosis.com/upgrade
2) use the Kurtosis CLI to restart your engine via 'kurtosis engine restart'
3) upgrade your Kurtosis SDK library using the instructions at https://github.com/kurtosis-tech/kurtosis-engine-api-lib
--- at /Users/mega/.asdf/installs/golang/1.23.4/packages/pkg/mod/github.com/kurtosis-tech/kurtosis/api/[email protected]/engine/lib/kurtosis_context/kurtosis_context.go:512 (validateEngineApiVersion) ---
What is the severity of this bug?
Papercut; this bug is frustrating, but I have a workaround.
What area of the product does this pertain to?
SDK: the Software Development Kit libraries - Typescript, Go, etc.
The text was updated successfully, but these errors were encountered:
What's your CLI version?
v2.1.0
Description & steps to reproduce
Trying to update the dependency to the latest version fails. I tried in multiple ways, but the only way I got it to work is by specifying the commit:
$ go get github.com/kurtosis-tech/kurtosis/api/golang@84e2fe2 go: downloading github.com/kurtosis-tech/kurtosis/api/golang v1.4.4-0.20250116034716-84e2fe2b35f5 go: downloading github.com/kurtosis-tech/kurtosis v1.4.2-0.20250116034716-84e2fe2b35f5 go: upgraded github.com/kurtosis-tech/kurtosis/api/golang v1.4.3 => v1.4.4-0.20250116034716-84e2fe2b35f5
I tried with
@v2.1.0
:@v2.1.0
, and appending a/v2
to the url:with the release tag (
2.1.0
):Deleting the dependency and adding it again also doesn't work: it just adds the old
v1.4.3
version togo.mod
.Desired behavior
I expected that running:
would update the Go API to the latest version. Using it after running that returns:
What is the severity of this bug?
Papercut; this bug is frustrating, but I have a workaround.
What area of the product does this pertain to?
SDK: the Software Development Kit libraries - Typescript, Go, etc.
The text was updated successfully, but these errors were encountered: