hadolint 1.6.2 → 1.6.3
raw patch · 3 files changed
+4/−5 lines, 3 files
Files
- hadolint.cabal +2/−2
- src/Hadolint/Rules.hs +1/−2
- test/Spec.hs +1/−1
hadolint.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: f24dbfc28b7f07ed86a83c5099ee99d1b02891582b069a151426cc7980798281+-- hash: c21bd56e27b146d3a8ede82b69ed4a592a00e364a49e159607b05fc414cb1609 name: hadolint-version: 1.6.2+version: 1.6.3 synopsis: Dockerfile Linter JavaScript API description: A smarter Dockerfile linter that helps you build best practice Docker images. category: Development
src/Hadolint/Rules.hs view
@@ -349,8 +349,7 @@ , isAptGetInstall cmd ] where- noOption arg = arg `notElem` options && not ("--" `isPrefixOf` arg)- options = ["apt-get", "install", "-d", "-f", "-m", "-q", "-y", "-qq"]+ noOption arg = arg `notElem` ["apt-get", "install"] && not ("-" `isPrefixOf` arg) aptGetCleanup dockerfile = instructionRuleState code severity message check Nothing dockerfile where
test/Spec.hs view
@@ -120,7 +120,7 @@ it "apt-get pinned chained" $ let dockerfile = [ "RUN apt-get update \\"- , " && apt-get -y --no-install-recommends install nodejs=0.10 \\"+ , " && apt-get -yqq --no-install-recommends install nodejs=0.10 \\" , " && rm -rf /var/lib/apt/lists/*" ] in ruleCatchesNot aptGetVersionPinned $ unlines dockerfile