Skip to content

Consider removing exported error types #296

@kmoe

Description

@kmoe

The tfexec exported error types - for example, tfexec.ErrCLIUsage and tfexec.ErrTFVersionMismatch - are implemented by parsing Terraform's human-readable error output using regular expressions.

Since this log output is subject to frequent changes and not covered by the v1.0 compatibility promises, users of these error types are at risk of having their code broken by new Terraform versions, requiring them (in the best case) to keep terraform-exec updated.

This error parsing code also seems to be a leading cause of terraform-exec nightly test failures.

Are these error types useful enough to consumers to continue maintaining them? Should we remove them prior to v1.0.0? Are there any really good use cases?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions