Skip to content

More complex Heredoc support is missing #28

@mikko-timofeev

Description

@mikko-timofeev

( Related issue: #7 )

Actual behaviour

Linter fails to recognise multiline RUN statements with Heredoc involving output redirection.
Each line throws "Unknown instruction: {some_command} (dockerfile-utils 38)" (displayed with curly red underline).

Expected behaviour

The entire multiline RUN block should be recognised as a single, valid instruction.

Example:

This RUN command is valid and confirmed to be working as part of a production container image file.

RUN cat << 'EOF' > /home/example/.zshrc
setopt PROMPT_SUBST
autoload -U colors && colors
PS1='%n@%m %~ $ '
EOF

Exceptions displayed:
Unknown instruction: SETOPT (dockerfile-utils 38)
Unknown instruction: AUTOLOAD (dockerfile-utils 38)
Unknown instruction: PS1='%N@%M (dockerfile-utils 38)


Zed version: 0.210.4
Extension version: 0.0.6

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