This commit is contained in:
Shreyas Goenka 2025-02-03 13:14:38 +01:00
parent 2cbc39fdc9
commit f3e7594f39
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
4 changed files with 10 additions and 16 deletions

View File

@ -1,6 +1,5 @@
# TODO: We do not run this on windows because we don't have proper stubbing
# for API errors yet. Run this on windows as well once we can stub API errors
GOOS = {
"darwin",
"linux"
}
# for API errors yet. Simply not defining a server stub does not return a 404 on windows.
# Run this on windows as well once we can stub API errors.
[GOOS]
windows = false

View File

@ -22,8 +22,6 @@ calculate lock file checksums locally for the following providers:
To calculate additional checksums for another platform, run:
terraform providers lock -platform=OS_ARCH
(where OS_ARCH is the platform to generate)
Terraform has been successfully initialized!

View File

@ -8,7 +8,12 @@
# The current .terraform.lock.hcl file only includes checksums for linux_amd64,
# so Terraform running on another platform will fail to install these
# providers.
#
# Linux:
# To calculate additional checksums for another platform, run:
# terraform providers lock -platform=OS_ARCH
# (where OS_ARCH is the platform to generate)
trace $TERRAFORM init -no-color -get=false | grep -v 'includes checksums for' | grep -v 'so Terraform running on another' | grep -v 'providers\.'
trace $TERRAFORM init -no-color -get=false | grep -v 'includes checksums for' | grep -v 'so Terraform running on another' | grep -v 'providers\.' | grep -v 'terraform providers lock -platform=' | grep -v 'is the platform to generate'
trace $TERRAFORM plan -no-color
rm -fr .terraform.lock.hcl .terraform

View File

@ -1,11 +1,3 @@
[[Repls]]
Old = 'linux_amd64'
New = 'OS_ARCH'
[[Repls]]
Old = '[OS]_amd64'
New = 'OS_ARCH'
[[Repls]]
Old = 'Read complete after [^\s]+'
New = 'Read complete after (redacted)'