Skip to content

Commit be592ca

Browse files
Handle bare dot identity operator in pipeline classify_stage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6311a84 commit be592ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hcl2/query/pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def classify_stage(stage_str: str) -> Any:
149149

150150
# Allow jq-style leading dot (e.g. ".foo" in a pipe stage)
151151
path_str = stripped
152+
if path_str == ".":
153+
return PathStage(segments=[])
152154
if path_str.startswith(".") and len(path_str) > 1 and path_str[1] != ".":
153155
path_str = path_str[1:]
154156

0 commit comments

Comments
 (0)