Replies: 1 comment 1 reply
-
|
Hi @byteborg ! Track #9496 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The image
postgres:17-alpine@sha256:170465e4803f7249557168732d89222da85164bbee649aefba4fe15a427643c5contains a layer with an Env entry of"DOCKER_PG_LLVM_DEPS=llvm19-dev \t\tclang19"Apparently the Dockerfile parser doesn't like it and barfs with an error.
It is unclear if the whole parsing process is broken or just the line is ignored.
Desired Behavior
Parse the Dockerfile from the image gracefully, issue a warning or error and state the consequence (eg. "Dockerfile cannot be parsed, it will be ignored in its entirety" or "Dockerfile line x cannot be parsed, just the entry/line will be ignored")
Actual Behavior
Dockerfile parser throws syntax error, appears to be platform-independent.
The logged error is
2025-09-18T16:45:49+02:00 ERROR [dockerfile scanner] Failed to parse file file_path="Dockerfile" err="dockerfile parse error: Syntax error - can't find = in \"clang19\". Must be of the form: name=value"Reproduction Steps
Target
Container Image
Scanner
Misconfiguration
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
macOS Sequoia arm64, linux amd64
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions