mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-08-30 15:39:11 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7c2359c6bf | ||
![]() |
65a52b5272 |
@@ -1,14 +1,11 @@
|
|||||||
package buildflags
|
package buildflags
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
|
|
||||||
"github.com/moby/buildkit/util/entitlements"
|
"github.com/moby/buildkit/util/entitlements"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ParseEntitlements(in []string) ([]string, error) {
|
func ParseEntitlements(in []string) ([]string, error) {
|
||||||
out := make([]string, 0, len(in))
|
out := make([]string, 0, len(in))
|
||||||
log.Printf("in: %#v", in)
|
|
||||||
for _, v := range in {
|
for _, v := range in {
|
||||||
if v == "" {
|
if v == "" {
|
||||||
continue
|
continue
|
||||||
@@ -19,6 +16,5 @@ func ParseEntitlements(in []string) ([]string, error) {
|
|||||||
}
|
}
|
||||||
out = append(out, v)
|
out = append(out, v)
|
||||||
}
|
}
|
||||||
log.Printf("Parsed entitlements: %v", out)
|
|
||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user