crossplane-contrib / crossplane-contrib/function-hcl

Better error reporting for incomplete values

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

* Currently we descend into expressions to find the parts that are incomplete and reporting these. This is already a huge step over saying _something in this resource is incomplete, figure it out_
* However since we evaluate locals eagerly we cannot descend into expressions assigned to local variables
* Separately, if a variable `foo` is incomplete and used in 3 places in an expression we report it 3 times

Figure out a way to make this better.

Also some parts of the code do a poor job with diags capture. Maybe simplify and standardize this across the board.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.