Skip to main content

Git sparse checkout paths on module tests

We have consolidated our modules into one git repo and are using sparse checkout paths. However, our resources are split across separate modules. As an example we have three separate modules:

- `terraform-azure-sqlserver`
- `terraform-azure-sqlelasticpooldb`
- `terraform-azure-sqlserverdb`

When I test the `sqlserverdb` module, I need the server and elastic pool modules available. Historically we've referenced the Spacelift registry version of the sister module in the test stack. This worked fine, but now we're doing a big bang azurerm v3 → v5 upgrade and testing fails due to the provider dependency conflict described above.
Problem

Log in to comment and vote

No comments yet

Be the first to share your thoughts.