Skip to content

DL3018 triggered on trailing escape newline #1031

@dhoepelman

Description

@dhoepelman
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

hadolint treats an escape character as the last line the same as dockerfile

Actual behavior

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

Steps to reproduce the behavior

**Output of hadolint --version

Haskell Dockerfile Linter 2.12.0

Dockerfile

RUN apk add --no-cache \
    foo=1.0 \
    bar=2.0 \

# More commands here

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