Slackbot
09/22/2023, 6:28 PMLuke Massa
09/22/2023, 6:36 PM-w flag as well?wby
09/22/2023, 6:44 PMatlantis plan -d foo-bar/baz -w default
Still get:
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?Luke Massa
09/22/2023, 6:51 PMplan to create that dir, so strange it complains it doesn't exist yet 🤔Luke Massa
09/22/2023, 6:51 PMwby
09/22/2023, 6:59 PMprojects:
- dir: foobar
- dir: foo-bar/baz
in atlantis.yamlwby
09/22/2023, 7:02 PMatlantis plan / etc. still work fineLuke Massa
09/22/2023, 7:16 PM// 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 reasonLuke Massa
09/22/2023, 7:17 PMwby
09/22/2023, 7:22 PMatlantis plan also fail, though?wby
09/22/2023, 7:23 PMwby
09/22/2023, 7:23 PMwby
09/22/2023, 7:24 PM