This message was deleted.
# atlantis-community
s
This message was deleted.
l
does it happen if you pass the
-w
flag as well?
w
I hadn’t tested. just tried with:
Copy code
atlantis plan -d foo-bar/baz -w default
Still get:
Copy code
checking if workspace exists: stat /home/atlantis/.atlantis/repos/joinforma/myorg/2348/default: no such file or directory
Based on the error above, I’d have guessed it already defaulted to the
default
workspace anyway?
l
yeah I would have expected the
plan
to create that dir, so strange it complains it doesn't exist yet 🤔
maybe one of the intervening dirs doesn't exist?
w
I also don’t see the help text that usually / used to show up giving you the command to run for a specific directory. we are using auto module dependency calculation now, but I do still have
Copy code
projects:
  - dir: foobar
  - dir: foo-bar/baz
in
atlantis.yaml
the kube resource is a statefulset, but we don’t retain the atlantis home directory as a volume or anything. I guess I could try deleting the statefulset and see if that clears anything up. but regular
atlantis plan
/ etc. still work fine
l
Copy code
// GetWorkingDir returns the path to the workspace for this repo and pull.
func (w *FileWorkspace) GetWorkingDir(r models.Repo, p models.PullRequest, workspace string) (string, error) {
        repoDir := w.cloneDir(r, p, workspace)
        if _, err := os.Stat(repoDir); err != nil {
                return "", errors.Wrap(err, "checking if workspace exists")
        }
        return repoDir, nil
}
that makes it seem like the repo is cloned into that directory, then it can't find it for some reason
Maybe the clone failed?
w
if the clone failed, wouldn’t a regular
atlantis plan
also fail, though?
I’ll try in a different PR just to make sure the problem is sticking
yeah, same error…
we’ve been on 0.25.0 for a while too, so I don’t know what changed recently…. 🤔