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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
I noticed that when migrating files into a subdirectory such as parent/*.tf to parent/subdir/*tf, it will try to plan the empty parent/ dir even though there aren’t any matching *.tf files and fail to plan. Anyone know of a configuration fix for this or is this a bug?
To get around this, I’m thinking of updating the workflow to check if the directory is empty before the init workflow and if it is, just do an early exit 0
This issue makes refactoring more difficult.
Reproduction Steps
Find a directory of terraform files e.g. parent/*.tf
Create a new directory within that directory parent/subdir
Move the contents of parent/*.tf to parent/subdir
Create a PR
Atlantis will try to plan both parent/ and parent/subdir. The latter will succeed and the former will fail because there are no terraform files here.
Logs
Environment details
Additional Context
Must be a bug in auto discovery. The directory shouldn't even show up if there aren't any terraform files in there. See docs: auto discovering of projects #3038
The text was updated successfully, but these errors were encountered:
We have also hit this issue. We tried to work around it by creating a new folder in a separate PR and applying that first, then creating a 2nd PR that deletes the old directory, but the problem persists with the deletion of the existing directory. We have the ability to emergency merge a PR into the protected main branch, but only if the checks all pass and so Atlantis itself is blocking the emergency merge.
Community Note
Overview of the Issue
I noticed that when migrating files into a subdirectory such as parent/*.tf to parent/subdir/*tf, it will try to plan the empty parent/ dir even though there aren’t any matching *.tf files and fail to plan. Anyone know of a configuration fix for this or is this a bug?
To get around this, I’m thinking of updating the workflow to check if the directory is empty before the init workflow and if it is, just do an early exit 0
This issue makes refactoring more difficult.
Reproduction Steps
parent/*.tf
parent/subdir
parent/*.tf
toparent/subdir
Atlantis will try to plan both
parent/
andparent/subdir
. The latter will succeed and the former will fail because there are no terraform files here.Logs
Environment details
Additional Context
The text was updated successfully, but these errors were encountered: