You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running terraform-docs . on a system with an Apple M1 or M2 (ARM) chip, in the generated documentation, the provider version differs from systems with older chips (amd64). Specifically, the version for the AWS provider is not consistent.
This is causing an issue when collaborators with different architecture are working on the same Terraform project. Say user 1 has ARM architecture and user 2 has AMD architecture. Then if user 1 pushes a change after running terraform-docs . and user 2 pulls the change and runs terraform-docs . --output-check, an error is thrown: Error: README.md is out of date. Vice versa if user 2 pushes and user 1 pulls and checks.
How can we reproduce it?
On a system with an Apple M1 or M2 (ARM) chip, run terraform-docs .
On a system with an older chip (amd64), run terraform-docs .
Compare the generated documentation for the AWS provider version.
Environment information
On MacOS ARM Architecture:
Chip: Apple M2 Pro
terraform-docs version v0.16.0 darwin/arm64
go version go1.21.0 darwin/arm64
On MacOS AMD Architecture:
Chip: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
terraform-docs version v0.16.0 darwin/amd64
go version go1.21.0 darwin/amd64
Additional Information
This is causing an issue when collaborators from our team with different architecture are working on the same Terraform project. There is a task in our CI/CD pipeline that runs terraform-docs . --output-check from a Docker container with the amd64 architecture. When changes were pushed from a Mac with an M1 or M2 chip, the inconsistency in the generated documentation versions causes the pipeline to fail with Error: README.md is out of date. However, on my local machine (M2 chip), it reports that the documentation is up to date.
This is the workaround I am using:
These AWS provider version on line 61 pictured above must match that on line 55. So for this module, if I have the M1 or M2 chip, I must make a manual correction before I make a commit. In the README I need to replace 5.13.1 on line 61 with >= 5.0.0. Since we have a pre-commit hook which also runs terraform-docs . --output-check, I also need to use the --no-verify flag when commiting in order to ignore pre-commit hooks, which otherwise would raise an error and not let me commit, since according to my version of terraform-docs the README is not up to date.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running
terraform-docs .
on a system with an Apple M1 or M2 (ARM) chip, in the generated documentation, the provider version differs from systems with older chips (amd64). Specifically, the version for the AWS provider is not consistent.This is causing an issue when collaborators with different architecture are working on the same Terraform project. Say user 1 has ARM architecture and user 2 has AMD architecture. Then if user 1 pushes a change after running
terraform-docs .
and user 2 pulls the change and runsterraform-docs . --output-check
, an error is thrown:Error: README.md is out of date
. Vice versa if user 2 pushes and user 1 pulls and checks.How can we reproduce it?
terraform-docs .
terraform-docs .
Environment information
Apple M2 Pro
terraform-docs version v0.16.0 darwin/arm64
go version go1.21.0 darwin/arm64
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
terraform-docs version v0.16.0 darwin/amd64
go version go1.21.0 darwin/amd64
Additional Information
This is causing an issue when collaborators from our team with different architecture are working on the same Terraform project. There is a task in our CI/CD pipeline that runs
terraform-docs . --output-check
from a Docker container with the amd64 architecture. When changes were pushed from a Mac with an M1 or M2 chip, the inconsistency in the generated documentation versions causes the pipeline to fail withError: README.md is out of date
. However, on my local machine (M2 chip), it reports that the documentation is up to date.This is the workaround I am using:
These AWS provider version on line 61 pictured above must match that on line 55. So for this module, if I have the M1 or M2 chip, I must make a manual correction before I make a commit. In the README I need to replace
5.13.1
on line 61 with>= 5.0.0
. Since we have a pre-commit hook which also runsterraform-docs . --output-check
, I also need to use the--no-verify
flag when commiting in order to ignore pre-commit hooks, which otherwise would raise an error and not let me commit, since according to my version of terraform-docs the README is not up to date.The text was updated successfully, but these errors were encountered: