fix(terraform)

closes #3836
closes #3837
closes #3838
closes #3839
This commit is contained in:
Jacob Heider 2023-10-26 04:10:21 -04:00
parent 83627e7d46
commit cbbee7f718
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB

View file

@ -10,9 +10,11 @@ provides:
- bin/terraform
build:
script: |
go mod download
go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/terraform
script:
- run: EXTRA="-mod=mod"
if: <0.12.20
- go mod download
- go build -v -ldflags="$LDFLAGS" $EXTRA -o "{{ prefix }}/bin/terraform"
dependencies:
go.dev: ^1.18
env:
@ -30,6 +32,6 @@ test:
- terraform apply --auto-approve
- out=$(terraform output fixture)
- run: test "$out" = '"Hello, World!"'
if: '>=1'
if: '>=0.14'
- run: test "$out" = 'Hello, World!'
if: <1
if: <0.14