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