Skip to content

parser: allow ${...} expansion in FROM image references#111

Open
eyupcanakman wants to merge 1 commit into
hadolint:masterfrom
eyupcanakman:fix/from-parameter-expansion
Open

parser: allow ${...} expansion in FROM image references#111
eyupcanakman wants to merge 1 commit into
hadolint:masterfrom
eyupcanakman:fix/from-parameter-expansion

Conversation

@eyupcanakman

Copy link
Copy Markdown
Contributor

A : or @ inside a ${...} expansion in a FROM reference, like FROM ${IMAGE:?}:${TAG:?}, was read as the tag or digest separator, so the line failed to parse. Each expansion is now read as a single unit.

related-to: hadolint/hadolint#994

A ':' or '@' inside a ${...} shell parameter expansion, for example FROM ${IMAGE:?}:${TAG:?}, was read as the tag or digest separator, so the FROM line failed to parse.
Each expansion is now read as a single unit in the image name, tag and registry.

related-to: hadolint/hadolint#994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant