Closed anthonydahanne closed 3 months ago
Some buildpacks try to reproduce this common utility, it'd be better if it was available in libpak in the first place.
You can get this functionality from "golang.org/x/exp/slices" and even copy it from https://cs.opensource.google/go/x/exp/+/master:slices/slices.go
This is now in Go, finally, so we should switch buildpacks to use that.
https://pkg.go.dev/slices#Contains
Describe the Enhancement
Some buildpacks try to reproduce this common utility, it'd be better if it was available in libpak in the first place.
Motivation & Possible Solution
You can get this functionality from "golang.org/x/exp/slices" and even copy it from https://cs.opensource.google/go/x/exp/+/master:slices/slices.go