Currently, data_apko_tags uses a prefix-match to determine matching packages. This works for matching things like foo vs foo-fips.
|
if strings.HasPrefix(pkg, data.TargetPackage.ValueString()+"-") { |
However, this doesn't work if packages are not strict prefixes of each other - e.g. foo-bar vs foo-fips-bar. Normally packages would represent this kind of "foo with bar variant" with a provides section of the apk, but the provider only considers the apko config itself during resolution.
Ideally, the following apk pkginfo should be able to satisfy foo:
name = bar
provides = foo
Currently, data_apko_tags uses a prefix-match to determine matching packages. This works for matching things like
foovsfoo-fips.terraform-provider-apko/internal/provider/tags_data_source.go
Line 123 in 5d34bb6
However, this doesn't work if packages are not strict prefixes of each other - e.g.
foo-barvsfoo-fips-bar. Normally packages would represent this kind of "foo with bar variant" with aprovidessection of the apk, but the provider only considers the apko config itself during resolution.Ideally, the following apk pkginfo should be able to satisfy
foo: