_get_repo_root() in noxfile.py
can fail when .git
does not exist at project root
#792
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Using
.git
to search for the project root only works in repos that have a.git
folder present.synthtool/synthtool/gcp/templates/python_samples/noxfile.py.j2
Lines 195 to 205 in 487eba7
But many of our repos don't have a
.git
folder at the project root level, including:Using
.gitignore
is probably better.TL;DR - I came across this problem when using Cloud Build for
python-pubsublite
samples testing. Cloud Build copies all the files in a repo to a folder namedworkspace/
. When Icd
intosamples/snippets/
and dopip install -e ..
, I keep getting an error that says "Unable to detect repository root".The text was updated successfully, but these errors were encountered: