mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-19 01:47:43 +08:00
fix lint issues
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
615f4f6759
commit
f3929447d7
@ -1126,11 +1126,9 @@ func collectLocalPaths(t build.Inputs) []string {
|
|||||||
if v, ok := isLocalPath(t.DockerfilePath); ok {
|
if v, ok := isLocalPath(t.DockerfilePath); ok {
|
||||||
out = append(out, v)
|
out = append(out, v)
|
||||||
}
|
}
|
||||||
} else {
|
} else if strings.HasPrefix(t.ContextPath, "cwd://") {
|
||||||
if strings.HasPrefix(t.ContextPath, "cwd://") {
|
|
||||||
out = append(out, strings.TrimPrefix(t.ContextPath, "cwd://"))
|
out = append(out, strings.TrimPrefix(t.ContextPath, "cwd://"))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for _, v := range t.NamedContexts {
|
for _, v := range t.NamedContexts {
|
||||||
if v.State != nil {
|
if v.State != nil {
|
||||||
continue
|
continue
|
||||||
|
@ -138,7 +138,6 @@ func (c EntitlementConf) check(bo build.Options, expected *EntitlementConf) erro
|
|||||||
if src, ok := ci.Attrs["src"]; ok {
|
if src, ok := ci.Attrs["src"]; ok {
|
||||||
roPaths[src] = struct{}{}
|
roPaths[src] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user