From 0a4f792117445c0866ab3bf2172f7d74f992e350 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 12 Oct 2023 15:55:44 -0700 Subject: [PATCH] Remove use of v1 runtime plugin type for Unix Signed-off-by: Derek McGowan --- client.go | 3 +-- services/tasks/local_unix.go | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client.go b/client.go index 4fddbcca5..a369ab96c 100644 --- a/client.go +++ b/client.go @@ -21,7 +21,6 @@ import ( "context" "encoding/json" "fmt" - "runtime" "strconv" "strings" "sync" @@ -185,7 +184,7 @@ func NewWithConn(conn *grpc.ClientConn, opts ...ClientOpt) (*Client, error) { c := &Client{ defaultns: copts.defaultns, conn: conn, - runtime: plugins.RuntimePlugin.String() + "." + runtime.GOOS, + runtime: defaults.DefaultRuntime, } if copts.defaultPlatform != nil { diff --git a/services/tasks/local_unix.go b/services/tasks/local_unix.go index 874297a26..ddff2ebb5 100644 --- a/services/tasks/local_unix.go +++ b/services/tasks/local_unix.go @@ -25,7 +25,6 @@ import ( var tasksServiceRequires = []plugin.Type{ plugins.EventPlugin, - plugins.RuntimePlugin, plugins.RuntimePluginV2, plugins.MetadataPlugin, plugins.TaskMonitorPlugin,