py-poetry-core GIT_DIR fix (#35139)

This commit is contained in:
mtaylo12 2023-01-26 03:26:53 -05:00 committed by GitHub
parent 0b388ff930
commit 95a76de7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ class PyPoetryCore(PythonPackage):
# https://github.com/python-poetry/poetry/issues/5547
def setup_build_environment(self, env):
env.set("GIT_DIR", self.stage.source_path)
env.set("GIT_DIR", join_path(self.stage.source_path, ".git"))
def setup_dependent_build_environment(self, env, dependent_spec):
env.set("GIT_DIR", dependent_spec.package.stage.source_path)
env.set("GIT_DIR", join_path(dependent_spec.package.stage.source_path, ".git"))