Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suggestion to run wget with --progress=dot:giga #566

Merged
merged 1 commit into from Mar 16, 2021

Conversation

nvtkaszpir
Copy link
Contributor

Implements #546

Signed-off-by: Michał Sochoń kaszpir@gmail.com

What I did

  • add basic tests
  • add new rule file 3047
  • extend Spec.hs and Process.hs
  • auto-updated hadolint.cabal

How I did it

How to verify it

stack test

See new section:

Wget no progress
  warns when using wget without progress option
  does not warn when running with progress option

@nvtkaszpir
Copy link
Contributor Author

ping @lorenzo

@lorenzo
Copy link
Member

lorenzo commented Mar 15, 2021

that was fast @nvtkaszpir 👏

I'll take a look tomorrow morning

README.md Outdated Show resolved Hide resolved
Fixes hadolint#546

Warn when runnign wget without without --progress flag unless
other flags are present (such as quiet/no-verbose/output/append),
which usually leads to insane amouts of useless logs when downloaded
files are big (usually anything over 5MB becomes annoying)

Adding --progress=dot:giga makes output much shorter even for very large
files such as AM/ML models etc.

See wget manual, search for --progress=dot:giga

Signed-off-by: Michał Sochoń <kaszpir@gmail.com>
@lorenzo
Copy link
Member

lorenzo commented Mar 16, 2021

Great job!

@lorenzo lorenzo merged commit 5c5a644 into hadolint:master Mar 16, 2021
@PeterDaveHello
Copy link
Contributor

Maybe this rule should prevent those busybox based wget? I wonder if we can just set the rule level to info instead of warning, there are so many Alpine/busybox based images using wget without this support.

PeterDaveHello added a commit to PeterDaveHello/hadolint that referenced this pull request Jun 19, 2021
PeterDaveHello added a commit to PeterDaveHello/hadolint that referenced this pull request Jun 19, 2021
lorenzo pushed a commit that referenced this pull request Jun 24, 2021
As @lorenzo mentioned in #546, it's okay to lower it down.

cc #546 #566
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.

None yet

3 participants