dockerfile_lint icon indicating copy to clipboard operation
dockerfile_lint copied to clipboard

percent character causes the linter to hang

Open scott2449 opened this issue 8 years ago • 3 comments

For example if you use a url in ADD that contains encoded characters:

ADD http://sample.com?sample=%5Bsample%5D sample.zip

linting this will just cause the linter to hang at the cli and never return

scott2449 avatar Jan 27 '17 15:01 scott2449

@scott2449 - I can't reproduce this in my environment. Can you provide more information about your environment (output of "npm version") as well as the complete Dockerfile you are linting?

lphiri avatar Feb 07 '17 13:02 lphiri

@scott2449 - Same. I do get some errors that should be addressed with regex however

Line 12: -> ADD http://sample.com?sample=%5Bsample%5D sample.zip ERROR: Invalid parameters for command..

dav1x avatar Feb 07 '17 16:02 dav1x

It happened with a dozen different docker files. If I add a percent anywhere it implodes. I'm on 6.9.1 of node locally (same happened in our jenkins w/ another revision of 6). I am on a Mac but Jenkins is Centos.

scott2449 avatar Feb 07 '17 18:02 scott2449