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

config: Allow deprecation/warnings for built-in functions #4914

Closed
radeksimko opened this issue Jan 30, 2016 · 2 comments
Closed

config: Allow deprecation/warnings for built-in functions #4914

radeksimko opened this issue Jan 30, 2016 · 2 comments

Comments

@radeksimko
Copy link
Member

#4899 (comment)
I'm pulling this out to track it in a separate issue and to find out if there is any interest in such feature.

The aim is to allow maintainers/developers to mark a specific feature of builtin function or the whole function as deprecated and print warning if user uses the deprecated function or feature of function in the terraform config.

@teamterraform
Copy link
Contributor

Although we do not have a specialized feature for reporting warnings for functions specifically, the new diagnostics mechanism introduced for Terraform 0.12 allows for reporting warnings from potentially any codepath, as long as it is plumbed for diagnostics. We don't currently have a specific need for a function to be deprecated, and so we may still have a little such "plumbing" to do when that arises, but we'll close this issue for now since functions are just one possible place that warning messages might be required and the general approach to adding them would now be largely the same regardless of the feature.

(An exception is warnings from providers, which are still very constrained by the existing SDK API and old RPC protocol, but Terraform Core is ready to receive warnings from providers once the SDK is equipped to return them. That's just one part of the general effort to prepare the SDK to use 0.12 features, though.)

@ghost
Copy link

ghost commented Aug 19, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants