You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the above Dockerfile is invalid, we should still return something for getBuildStage() and getBuildStageRange() given that the third argument does exist and it follows an AS.
letdockerfileAst=require("dockerfile-ast");dockerfile=dockerfileAst.DockerfileParser.parse("FROM node AS build abc");console.log("Name:\t"+dockerfile.getInstructions()[0].getBuildStage());console.log("Range:\t"+dockerfile.getInstructions()[0].getBuildStageRange());
null
null
The text was updated successfully, but these errors were encountered:
FROM node AS build abc
Although the above Dockerfile is invalid, we should still return something for
getBuildStage()
andgetBuildStageRange()
given that the third argument does exist and it follows anAS
.The text was updated successfully, but these errors were encountered: