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