Skip to content

FROM Definition does not allow '-' in identifiers  #31

@woidda

Description

@woidda

It seems as if minus is not allowed in docker image names.

For example FROM anapsix/alpine-java leads to an error indicator "Missing EOF at '-'".
My guess is that the problem lies in your DSL definition of VALID_IMAGE_NAME which uses ID as reference for valid names.

The ID is inherited from the grammar org.eclipse.xtext.common.Terminals with following definition:

terminal ID : 
  ('^')?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;

Well, there is no minus allowed here. It should be an easy fix...

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