This message was deleted.
# atlantis-community
s
This message was deleted.
d
Now it managed to plan all properly in the last run and later on failed to plan 3/4 projects
Copy code
Error: Required plugins are not installed
│ 
│ The installed provider plugins are not consistent with the packages
│ selected in the dependency lock file:
│   - <http://registry.terraform.io/hashicorp/local|registry.terraform.io/hashicorp/local>: the cached package for <http://registry.terraform.io/hashicorp/local|registry.terraform.io/hashicorp/local> 2.4.0 (in .terraform/providers) does not match any of the checksums recorded in the dependency lock file
│ 
│ Terraform uses external plugins to integrate with a variety of different
│ infrastructure services. You must install the required plugins before
│ running Terraform operations.
p
are you committing the lock file ?
lock file checksum are ARCH specific so if you for example do init on Mac m1 and then commit the lock and then plan on Atlantis (Linux) it will fail.on trying to install the plugins
d
Sorry for replying so late but I was done for the week when you replied. No I'm not committing the file. This error appears kinda randomly. Lets say I run
atlantis plan
multiple times (no changes to the code) these are the results I get accross the runs: 1. 2/4 fail 2. 1/4 fail 3. 0/4 fail (plan success) 4. 3/4 fail 5. 1/4 fail .... Downgrading seems to keep similar results
r
hello 👋 this command will generate the lockfile for 4 architectures (linux/mac in intel/arm)
Copy code
terraform providers lock -platform=linux_arm64 -platform=linux_amd64 -platform=darwin_amd64 -platform=darwin_arm64
But I'm facing the same issue I'm trying to find a workaround and keep the lockfile versioned. Maybe a prehook (atlantis side) or dev side with a specific pre-commit configuration...
o
We exclude locks from being committed to the repo.
👍 2
d
We do exclude them as well however we still get that error...