Skip to content

Allow rm yum cache clean up#880

Merged
lorenzo merged 1 commit intohadolint:masterfrom
cronik:feature/yum-clean-up
Nov 7, 2022
Merged

Allow rm yum cache clean up#880
lorenzo merged 1 commit intohadolint:masterfrom
cronik:feature/yum-clean-up

Conversation

@cronik
Copy link
Copy Markdown
Contributor

@cronik cronik commented Oct 8, 2022

Update DL3032 and DL3040 to allow explicit yum cache clean up after install.

Fixes #796

What I did

Update DL3032 and DL3040 to allow explicit yum cache clean up after install using rm -rf /var/cache/yum/*

How I did it

Added || condition to clean up rules.

How to verify it

Unit tests have been added for both rules.

Update DL3032 and DL3040 to allow explicit yum cache clean up after
install.

Fixes hadolint#796
@lorenzo
Copy link
Copy Markdown
Member

lorenzo commented Nov 7, 2022

thanks!

@lorenzo lorenzo merged commit a7bbd3d into hadolint:master Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DL3040 is triggered when cleaning the cache using 'rm' instead of 'dnf clean all'

2 participants