Skip to content

Commit f283262

Browse files
committed
Adding dynamic go mod
1 parent 5e6f880 commit f283262

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ jobs:
7575
pip install --upgrade pip
7676
pip install -r requirements.txt
7777
78+
- name: Apply Terraform Plugin Sdk Patch
79+
run: |
80+
cd terraform-provider-aws
81+
sdk_version=$(go list -m github.com/hashicorp/terraform-plugin-sdk/v2 | sed -n -e 's/^.* //p')
82+
go mod edit --replace github.com/hashicorp/terraform-plugin-sdk/v2=github.com/cloutierMat/terraform-plugin-sdk/v2@${sdk_version}
83+
go mod tidy
84+
7885
- name: Patch Terraform Provider
7986
run: |
8087
source .venv/bin/activate

0 commit comments

Comments
 (0)