From 3800469ec06dcbdec42f4a6362bf9d96f0cb30f7 Mon Sep 17 00:00:00 2001 From: Tedi Mitiku Date: Fri, 7 Jun 2024 10:32:05 -0400 Subject: [PATCH] remove old task name code --- .../kurtosis_instruction/tasks/run_sh.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/server/api_container/server/startosis_engine/kurtosis_instruction/tasks/run_sh.go b/core/server/api_container/server/startosis_engine/kurtosis_instruction/tasks/run_sh.go index 4d5d2651f0..feacacf61d 100644 --- a/core/server/api_container/server/startosis_engine/kurtosis_instruction/tasks/run_sh.go +++ b/core/server/api_container/server/startosis_engine/kurtosis_instruction/tasks/run_sh.go @@ -24,7 +24,6 @@ import ( "github.com/kurtosis-tech/kurtosis/core/server/api_container/server/startosis_engine/startosis_packages" "github.com/kurtosis-tech/kurtosis/core/server/api_container/server/startosis_engine/startosis_validator" "github.com/kurtosis-tech/stacktrace" - "github.com/xtgo/uuid" "go.starlark.net/starlark" "go.starlark.net/starlarkstruct" ) @@ -152,17 +151,6 @@ func (builtin *RunShCapabilities) Interpret(locatorOfModuleInWhichThisBuiltinIsB } builtin.name = taskName - if arguments.IsSet(TaskNameArgName) { - taskName, err := builtin_argument.ExtractArgumentValue[starlark.String](arguments, TaskNameArgName) - if err != nil { - return nil, startosis_errors.WrapWithInterpretationError(err, "Unable to extract value for '%s' argument", TaskNameArgName) - } - builtin.name = taskName.GoString() - } else { - randomUuid := uuid.NewRandom() - builtin.name = fmt.Sprintf("task-%v", randomUuid.String()) - } - runCommand, err := builtin_argument.ExtractArgumentValue[starlark.String](arguments, RunArgName) if err != nil { return nil, startosis_errors.WrapWithInterpretationError(err, "Unable to extract value for '%s' argument", RunArgName)