refactor: put StripTagMeta into formatter package

Avoid circular import.
This commit is contained in:
2022-01-19 10:40:14 +01:00
parent 7a66a90ecb
commit f9a2c1d58f
7 changed files with 31 additions and 28 deletions

View File

@ -143,7 +143,7 @@ func getImageVersions(recipe recipe.Recipe) (map[string]string, error) {
path := reference.Path(img)
path = recipePkg.StripTagMeta(path)
path = formatter.StripTagMeta(path)
var tag string
switch img.(type) {