fix: update stale util.StringSlice use to new stringslice lib
@@ -28,7 +28,7 @@ import (
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/config"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/parser"
v1 "github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/latest/v1"
- "github.com/GoogleContainerTools/skaffold/pkg/skaffold/util"
+ "github.com/GoogleContainerTools/skaffold/pkg/skaffold/util/stringslice"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/version"
"github.com/GoogleContainerTools/skaffold/testutil"
)
@@ -149,7 +149,7 @@ func TestGetSkaffoldYamlsLintResults(t *testing.T) {
// mock profile activation
var set parser.SkaffoldConfigSet
for _, c := range configSet {
- if len(opts.ConfigurationFilter) > 0 && !util.StrSliceContains(opts.ConfigurationFilter, c.Metadata.Name) {
+ if len(opts.ConfigurationFilter) > 0 && !stringslice.Contains(opts.ConfigurationFilter, c.Metadata.Name) {
continue
}
for _, pName := range opts.Profiles {
