Skip to content

Show a deprecation notice that points to lstk terraform - #98

Merged
anisaoshafi merged 2 commits into
mainfrom
devx-1167-tflocal-deprecation-notice
Oct 9, 2026
Merged

anisaoshafi merged 2 commits into
mainfrom
devx-1167-tflocal-deprecation-notice

Conversation

@anisaoshafi

@anisaoshafi anisaoshafi commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

tflocal now prints a deprecation notice to stderr on every run. It points users to lstk terraform and the migration guide. It reuses the notice structure from the localstack CLI (DEVX-1126).

============================================================================
  WARNING: 'tflocal' is deprecated. Use 'lstk terraform' instead.
============================================================================

  'tflocal' no longer receives updates.

  Get started with 'lstk', the new LocalStack CLI:
  https://docs.localstack.cloud/aws/developer-tools/running-localstack/lstk/

  Switch your scripts and CI workflows to 'lstk terraform':
  https://docs.localstack.cloud/aws/developer-tools/running-localstack/lstk/migration/#infrastructure-as-code

============================================================================

Continuing with 'tflocal'...
  • Stdout stays clean, so piped output still works.
  • DISABLE_DEPRECATION_NOTICE=1 hides the notice.
  • Adds the same note to the README and bumps the version to 0.27.0.
  • CI fix: skips the -v version test when the tool rejects -v. OpenTofu 1.13 dropped that flag, so the test also fails on main.

Resolves DEVX-1167

@anisaoshafi
anisaoshafi marked this pull request as ready for review October 8, 2026 15:59
@anisaoshafi
anisaoshafi requested a review from a team October 8, 2026 16:06
@anisaoshafi
anisaoshafi merged commit d8e682f into main Oct 9, 2026
3 checks passed
@anisaoshafi
anisaoshafi deleted the devx-1167-tflocal-deprecation-notice branch October 9, 2026 15:20
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