Skip to content

data_apko_tags doesn't respect apk provides #377

Description

@wlynch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions