-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"Atlantis apply" fails where "atlantis apply -p project" works #2168
Comments
I am running into the same or similar issue:
Apply works if I specify the folder like |
I was able to debug this. This error message appears in case you create an additional folder one level above the repo root. For example in case your repo root is: and you create an additional folder like: You get the above error. |
@Dilergore that is funny because if you create workspaces, they always become a sibling of default folder |
I'm having the same problem as well.
I'm fairly new to Atlantis; besides adding |
is this still happening with |
@jamengual yes, updated a few minutes ago |
are you running a custom image?
…On Fri, Aug 26, 2022, 1:26 a.m. MrLuje ***@***.***> wrote:
@jamengual <https://github.com/jamengual> yes, updated a few minutes ago
[image: image]
<https://user-images.githubusercontent.com/632075/186857926-84dc93fb-8ee8-4307-b486-534cb69371ff.png>
—
Reply to this email directly, view it on GitHub
<#2168 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3ERGES5QN6NFMNHT5Z5LV3B5RZANCNFSM5R3O53RA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No, I'm using the stock one (atlantis/atlantis:v0.19.8) |
I'm having a similar issue, and was able to debug it: The error says that something is not a directory. The command This function lists all entries in the PR folder (like In my case, some steps in the workflow were creating files in aforementioned PR directory, hence breaking this logic and Atlantis trying to run I'm not sure whether you are having the same issue, but judging by the error and some steps that copy files outside of current dir, this could be it. Hope this helps! This could be fixed at Atlantis level: for example, by reading workspace list from atlantis.yaml, and not by listing the PR directory, or by ignoring all non-directories in PR dir. |
Same thing in version 0.19.9 |
@jamengual Can I work on this one ? |
@MrLuje Fabiano is already working on this one, he created a pull request. if you are interested you can take a look at it get familiar with the code and maybe give some feedback. |
Community Note
Overview of the Issue
I have a multi-projects repository on gitlab.
atlantis apply -p project
also works fineatlantis apply
fails with message :running git ls-files . --others: : fork/exec /usr/bin/git: not a directory
Reproduction Steps
atlantis apply
through Merge Request commentrunning git ls-files . --others: : fork/exec /usr/bin/git: not a directory
Logs
Logs
Environment details
Atlantis server-side config file:
Repo
atlantis.yaml
file:Additional Context
if I connect to the pod running atlantis & cd to my repo in /atlantis-data, git commands work fine
Project structure
Global apply
Per project apply
The text was updated successfully, but these errors were encountered: