-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix upgrade v2.2.1 -> v3.4.0 forces replacement #304
Conversation
// TestAccResourcePassword_UpgradeFromVersion2_2_1 requires that you are running an amd64 Terraform binary | ||
// if you are running this test locally on arm64 architecture otherwise you will see the following error: | ||
// | ||
// Error: Incompatible provider version | ||
// | ||
// Provider registry.terraform.io/hashicorp/random v2.2.1 does not have a | ||
// package available for your current platform ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can codify this logic into the test via:
TestCase{
PreCheck: func() {
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
t.Skip("This test requires darwin/amd64 to download the old provider version. Setting TF_ACC_TERRAFORM_PATH to darwin/amd64 compatible Terraform binary can be used as a workaround.")
}
},
// ... other fields
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Have incorporated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🚀
Thank you @bendbennett and @bflad! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
References: #302
This should address #302 insofar as it fixes the issue when using the config supplied by blgm and the config supplied by alexpoto.