fix: モジュール検出がhardware/zonesを誤検出する問題を修正 - #53
Merged
Conversation
hardware/zones/配下は.tfファイルを含まないゾーンデータ(.zone)のみで、 それ自体はterraformモジュールではない。しかしdetect-modulesの HARDWARE_SUB_MODULES検出ロジックがhardware/modules/のみを除外しており、 hardware/zones/kigawa.net.zoneを変更したPR(#51)で"zones"が 誤ってモジュールとして検出され、"Error: No configuration files"で CIが失敗していた。 hardware/modules/と同様にhardware/zones/も除外対象に追加した。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kigawa-net/infraPR #51(hardware/zones/kigawa.net.zoneにAレコード追加)で、既存のterraform.ymlのPR自動plan(module検出→plan→PRコメント)が以下のエラーで失敗した:hardware/zones/配下は.tfファイルを含まないゾーンデータ(.zone)のみで、それ自体はterraformモジュールではない。しかしdetect-modulesジョブのHARDWARE_SUB_MODULES検出ロジックはhardware/modules/のみを除外対象としており、zones/は除外されていなかったため、zonesが誤ってモジュール名として検出されていた。Changes
.github/workflows/terraform.yml:HARDWARE_SUB_MODULES検出の除外パターンにzonesを追加(modulesと同様の扱い)Test plan
hardware/zones/のみを変更するPRでdetect-modulesがzonesをモジュールとして検出しないことを確認🤖 Generated with Claude Code