Skip to content
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

[hcledit/read] return error if fallback occurred #107

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

ryan-ph
Copy link
Member

@ryan-ph ryan-ph commented Apr 24, 2024

WHAT

title

WHY

This will clarify to users of HCLEditor.Read() whether the values returned should be interpreted as a RawVal or not. Ideally, this error should be per-key in the return map since HCLEditor.Read() allows you to read multiple values from the HCL config with the splat operator.

@ryan-ph ryan-ph marked this pull request as draft April 24, 2024 05:42
@ryan-ph ryan-ph force-pushed the ryan-ph/read-fallback/signal-fallback branch 2 times, most recently from b45af68 to f62f2dc Compare April 24, 2024 06:07
@ryan-ph ryan-ph force-pushed the ryan-ph/read-fallback/signal-fallback branch from f62f2dc to 4813513 Compare April 24, 2024 06:10
@ryan-ph ryan-ph marked this pull request as ready for review April 24, 2024 06:31
@ryan-ph ryan-ph enabled auto-merge (squash) April 24, 2024 06:35
@ryan-ph ryan-ph disabled auto-merge April 24, 2024 06:50
hcledit.go Outdated Show resolved Hide resolved
@@ -1,8 +1,7 @@
name: Lint

on:
pull_request_target:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes the lint to run against main rather than the branch HEAD. This means the previous behavior let unlinted code make it to main, but prevents CI from passing on the next PR.

@ryan-ph ryan-ph merged commit 5e21f9c into main Apr 24, 2024
5 checks passed
@ryan-ph ryan-ph deleted the ryan-ph/read-fallback/signal-fallback branch April 24, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants