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

std.clamp not declared in linter stdlib #771

Open
nate-thirdwave opened this issue Sep 30, 2024 · 0 comments
Open

std.clamp not declared in linter stdlib #771

nate-thirdwave opened this issue Sep 30, 2024 · 0 comments

Comments

@nate-thirdwave
Copy link

The function for std.clamp does not appear to be defined. Indeed when looking in linter/internal/types/stdlib.go there does not seem to be a definition for clamp.

jsonnet-linter deb Release version 0.20

Error behavior:

../jsonnet-lint/usr/bin/jsonnet-lint -J . test.libsonnet
test.libsonnet:10:1-10 Indexed object has no field "clamp"

std.clamp(0.5, 0.0, 1.0)


test.libsonnet:10:1-25 Called value must be a function, but it is assumed to be void

std.clamp(0.5, 0.0, 1.0)

Expected behavior: std.clamp in the above statement would lint cleanly.

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

No branches or pull requests

1 participant