Skip to content

Commit 6299558

Browse files
committed
Remove "DockerFrom" function entirely to cause scripts to fail and force migration
1 parent a243c72 commit 6299558

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

go/src/bashbrew/docker.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ type dockerfileMetadata struct {
2525
Froms []string // every "FROM" or "COPY --from=xxx" value (minus named and/or numbered stages in the case of "--from=")
2626
}
2727

28-
func (r Repo) DockerFrom(entry *manifest.Manifest2822Entry) (string, error) {
29-
return r.ArchDockerFrom(arch, entry)
30-
}
31-
32-
func (r Repo) ArchDockerFrom(arch string, entry *manifest.Manifest2822Entry) (string, error) {
33-
dockerfileMeta, err := r.archDockerfileMetadata(arch, entry)
34-
if err != nil {
35-
return "", err
36-
}
37-
38-
return dockerfileMeta.StageFroms[len(dockerfileMeta.StageFroms)-1], nil
39-
}
40-
4128
func (r Repo) DockerFroms(entry *manifest.Manifest2822Entry) ([]string, error) {
4229
return r.ArchDockerFroms(arch, entry)
4330
}

0 commit comments

Comments
 (0)