Skip to content

DL3009 not triggered after apt update when apt is used instead of apt-get #1073

@PeterDaveHello

Description

@PeterDaveHello

Normally, Hadolint triggers DL3009 (Delete the apt-get lists after installing something) when /var/lib/apt/lists is not cleaned up after apt-get update. However, when using apt update instead of apt-get update, DL3009 does not appear. Instead, DL3027 (Do not use apt as it is meant to be an end-user tool, use apt-get or apt-cache instead) is shown.

I'm unsure if this is intentional or if DL3009 does not check for apt. Since these two rules address different concerns and should be independent, should DL3009 still be triggered in this case?

Looking forward to your thoughts. Thanks!

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