Variable: projectile--root-override

projectile--root-override is a variable defined in projectile.el.

Value

nil

Documentation

Directory projectile-project-root(var)/projectile-project-root(fun) answers with while this is non-nil.

Bound while detecting a subproject's type (see projectile-subproject-type). Eleven of the registered project types - go, make, terraform, xcode and the rest - identify themselves with a predicate rather than a list of marker file names, and those predicates resolve their paths through projectile-expand-root, which walks up to the enclosing project. Inside a monorepo that walk lands on the repository, so a Go module in a subdirectory would be asked whether the *repository* has a go.mod. Pinning the root for the duration of the detection asks the question about the member instead.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defvar projectile--root-override nil
  "Directory `projectile-project-root' answers with while this is non-nil.

Bound while detecting a subproject's type (see
`projectile-subproject-type').  Eleven of the registered project types -
`go', `make', `terraform', `xcode' and the rest - identify themselves
with a predicate rather than a list of marker file names, and those
predicates resolve their paths through `projectile-expand-root', which
walks up to the enclosing project.  Inside a monorepo that walk lands on
the repository, so a Go module in a subdirectory would be asked whether
the *repository* has a `go.mod'.  Pinning the root for the duration of
the detection asks the question about the member instead.")