Skip to content

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Apr 12, 2024

Previously, this tool by default will generate the import.tf as long as the terraform >= v1.5.0. Whilst this behavior will cause error when append to a workspace as a submodule, as the import.tf is only allowed to appear at the root module.

This PR fixes this issue by introducing a new option --generate-import-blockto allow users to select whether to generate theimport.tf`.

@magodo magodo added the bug Something isn't working label Apr 12, 2024
@magodo magodo requested a review from ms-henglu April 12, 2024 04:07
Copy link
Member

@ms-henglu ms-henglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants