Skip to content

Add more shim representation tests #2456

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

Merged
merged 5 commits into from
Oct 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert cty.go change
  • Loading branch information
t0yv0 committed Sep 30, 2024

Verified

This commit was signed with the committer’s verified signature.
MidhunSureshR R Midhun Suresh
commit 35e0c00ef7ffb03c018e1488b23a5712b03caf7e
2 changes: 1 addition & 1 deletion pkg/tfshim/sdk-v2/cty.go
Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ func recoverScalarCtyValue(dT cty.Type, value interface{}) (cty.Value, error) {
if value > math.MaxInt64 {
return cty.NilVal, fmt.Errorf("cannot convert %d (uint) to a int64: overflow", value)
}

//nolint:gosec
return cty.NumberIntVal(int64(value)), nil
case int64:
return cty.NumberIntVal(value), nil