Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENV declaration does not support regex in string #142

Open
matthewh86 opened this issue Dec 1, 2020 · 0 comments
Open

ENV declaration does not support regex in string #142

matthewh86 opened this issue Dec 1, 2020 · 0 comments

Comments

@matthewh86
Copy link

Summary

If an ENV declaration has some arbitrary regex it fails linter.

Expected behaviour

ENV should support setting arbitrary strings with control characters in them.

Actual behaviour

Line 3: -> ENV LATEST_GRADLE_REGEX=".+distributions\/gradle-(6.([7-9]|([1-9][0-9]){2,})\.*[0-9]*)-all\.zip\.sha256.*"
ERROR: Invalid parameters for command.. 
Reference -> https://docs.docker.com/engine/reference/builder/

Steps to reproduce

Dockerfile:

FROM alpine:latest

ENV LATEST_GRADLE_REGEX=".+distributions\/gradle-(6.([7-9]|([1-9][0-9]){2,})\.*[0-9]*)-all\.zip\.sha256.*"
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

No branches or pull requests

1 participant