mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 17:05:46 +08:00
Add support for empty strings in target elements and compact func.
Signed-off-by: Anthony Poschen <zanven42@gmail.com>
This commit is contained in:
parent
d2bf42f8b4
commit
abfb2c064d
@ -526,6 +526,9 @@ func removeDupes(s []string) []string {
|
|||||||
if _, ok := seen[v]; ok {
|
if _, ok := seen[v]; ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if v == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
seen[v] = struct{}{}
|
seen[v] = struct{}{}
|
||||||
s[i] = v
|
s[i] = v
|
||||||
i++
|
i++
|
||||||
|
@ -31,6 +31,7 @@ var (
|
|||||||
"csvdecode": stdlib.CSVDecodeFunc,
|
"csvdecode": stdlib.CSVDecodeFunc,
|
||||||
"coalesce": stdlib.CoalesceFunc,
|
"coalesce": stdlib.CoalesceFunc,
|
||||||
"coalescelist": stdlib.CoalesceListFunc,
|
"coalescelist": stdlib.CoalesceListFunc,
|
||||||
|
"compact": stdlib.CompactFunc,
|
||||||
"concat": stdlib.ConcatFunc,
|
"concat": stdlib.ConcatFunc,
|
||||||
"contains": stdlib.ContainsFunc,
|
"contains": stdlib.ContainsFunc,
|
||||||
"distinct": stdlib.DistinctFunc,
|
"distinct": stdlib.DistinctFunc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user