-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Early validation #1368
Early validation #1368
Conversation
b5b251f
to
18ff8f8
Compare
18ff8f8
to
372dbd5
Compare
44106bb
to
f6c6100
Compare
f6c6100
to
468764c
Compare
0712aed
to
9853098
Compare
12031e3
to
74c8ab4
Compare
f5a17fe
to
7b6cfdf
Compare
3a95a63
to
1ab1358
Compare
74c039c
to
d2f348e
Compare
Adds `validation.earlyValidation` as a new setting. I chose to use `validation` as a primary key as we expect to add future settings for this feature.
* Implement unreferenced variable validation (#1357) Add the ability to use the collected origin and target references in early validation by providing a hook for validation funcs. This also adds a validator for unreferenced variables. Validation funcs will be provided by terraform-ls for now, but may be moved into hcl-lang in the future. * Introduce ValidationDiagnostics field to module * Publish early validation diagnostics * Include validation diagnotics in changes check * Introduce early validation job * Check ValidationDiagnosticsState when running validation * Run early validation job after collection jobs * Bump hcl-lang to `b6a3f8` * Update internal/terraform/module/module_ops.go Co-authored-by: Radek Simko <[email protected]> --------- Co-authored-by: James Pogran <[email protected]> Co-authored-by: Radek Simko <[email protected]>
* Introduce different source for diagnostics * Add reference validation job * Run terraform validate as a job * Track validation job states * Review feedback * Pass pathCtx to reference validation funcs * Rename early validation job * Bump hcl-lang to `29034e` * Introduce VarsDiagnosticsState * Fix tests
* Introduce new context for valiation settings * Check context before scheduling jobs
* validations: Limit ref. validation to only LocalOrigin(s) * validations: add test for disabled origins
* validations: Enable reference validation of locals * Update internal/decoder/validations/unreferenced_origin.go Co-authored-by: Daniel Banck <[email protected]> * fix imports --------- Co-authored-by: Daniel Banck <[email protected]>
* deps: bump hcl-lang to aa9b38d (#1414) * re-define decoupled validators
* Move everything into defer * Add comment about lsctx * Have module registry job depend on module metadata
e775554
to
060b88e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This PR merges the feature branch back into
main