We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ffc8e6 commit fcd8b0dCopy full SHA for fcd8b0d
src/cfgnet/plugins/concept/docker_plugin.py
@@ -15,7 +15,7 @@
15
16
import os
17
import re
18
-
+import logging
19
from typing import List, Optional
20
import dockerfile
21
from cfgnet.config_types.config_types import ConfigType
@@ -67,7 +67,13 @@ def _parse_config_file(
67
)
68
69
self.env_vars.clear()
70
- data = dockerfile.parse_file(abs_file_path)
+ try:
71
+ data = dockerfile.parse_file(abs_file_path)
72
+ except dockerfile.GoParseError as error:
73
+ logging.warning(
74
+ "Invalid Dockerfile %s: %s", abs_file_path, error
75
+ )
76
+ return artifact
77
78
for cmd in data:
79
option = self.create_option(name=cmd.cmd, location=cmd.start_line)
0 commit comments