From ffef317655827cf5d6c6e78eef270fe0e15db177 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 28 Oct 2024 15:43:54 -0700 Subject: [PATCH] lint Signed-off-by: Kevin Su --- flytepropeller/pkg/compiler/transformers/k8s/inputs.go | 2 +- flytepropeller/pkg/compiler/validators/bindings.go | 3 +-- flytepropeller/pkg/compiler/validators/condition.go | 3 +-- flytestdlib/utils/pretty_print_test.go | 3 ++- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/flytepropeller/pkg/compiler/transformers/k8s/inputs.go b/flytepropeller/pkg/compiler/transformers/k8s/inputs.go index afac40689e..72850c8224 100644 --- a/flytepropeller/pkg/compiler/transformers/k8s/inputs.go +++ b/flytepropeller/pkg/compiler/transformers/k8s/inputs.go @@ -1,13 +1,13 @@ package k8s import ( - "github.com/flyteorg/flyte/flytestdlib/utils" "k8s.io/apimachinery/pkg/util/sets" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/common" "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/errors" "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/validators" + "github.com/flyteorg/flyte/flytestdlib/utils" ) func validateInputs(nodeID common.NodeID, iface *core.TypedInterface, inputs core.LiteralMap, errs errors.CompileErrors) (ok bool) { diff --git a/flytepropeller/pkg/compiler/validators/bindings.go b/flytepropeller/pkg/compiler/validators/bindings.go index f853e0a017..ff675733dc 100644 --- a/flytepropeller/pkg/compiler/validators/bindings.go +++ b/flytepropeller/pkg/compiler/validators/bindings.go @@ -4,14 +4,13 @@ import ( "fmt" "reflect" - "github.com/flyteorg/flyte/flytestdlib/utils" - "k8s.io/apimachinery/pkg/util/sets" flyte "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" c "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/common" "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/errors" "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/typing" + "github.com/flyteorg/flyte/flytestdlib/utils" ) func validateBinding(w c.WorkflowBuilder, node c.Node, nodeParam string, binding *flyte.BindingData, diff --git a/flytepropeller/pkg/compiler/validators/condition.go b/flytepropeller/pkg/compiler/validators/condition.go index 7cfc7d1c9d..74cc9dba92 100644 --- a/flytepropeller/pkg/compiler/validators/condition.go +++ b/flytepropeller/pkg/compiler/validators/condition.go @@ -3,11 +3,10 @@ package validators import ( "fmt" - "github.com/flyteorg/flyte/flytestdlib/utils" - flyte "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" c "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/common" "github.com/flyteorg/flyte/flytepropeller/pkg/compiler/errors" + "github.com/flyteorg/flyte/flytestdlib/utils" ) func validateOperand(node c.NodeBuilder, paramName string, operand *flyte.Operand, diff --git a/flytestdlib/utils/pretty_print_test.go b/flytestdlib/utils/pretty_print_test.go index ba9466a5c9..bc31666a9e 100644 --- a/flytestdlib/utils/pretty_print_test.go +++ b/flytestdlib/utils/pretty_print_test.go @@ -3,8 +3,9 @@ package utils import ( "testing" - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" "github.com/stretchr/testify/assert" + + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" ) func TestLiteralTypeToStr(t *testing.T) {