Skip to content

build: self-builder logic fixes for deep vs shallow clones#5034

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-shallow
Feb 20, 2026
Merged

build: self-builder logic fixes for deep vs shallow clones#5034
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-shallow

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 7, 2026

  • cmake utility build_dependency_with_cmake was unconditionally doing a shallow clone and using clone -b, but that only works if it's got a branch or tag name, not if it has a commit hash. So change the logic so it does a shallow clone only if GIT_TAG is specified but GIT_COMMIT is not.
  • pybind11 self-builder is modified to allow a git commit override.

* cmake utility build_dependency_with_cmake was unconditionally doing
  a shallow clone and using `clone -b`, but that only works if it's
  got a branch or tag name, not if it has a commit hash. So change
  the logic so it does a shallow clone only if GIT_TAG is specified
  but GIT_COMMIT is not.
* pybind11 self-builder is modified to allow a git commit override.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Collaborator Author

lgritz commented Feb 19, 2026

2 weeks with no comments. I will merge this at the end of the day if nobody objects.

@lgritz lgritz merged commit 14dbd96 into AcademySoftwareFoundation:main Feb 20, 2026
61 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Feb 20, 2026
…ftwareFoundation#5034)

* cmake utility build_dependency_with_cmake was unconditionally doing a
shallow clone and using `clone -b`, but that only works if it's got a
branch or tag name, not if it has a commit hash. So change the logic so
it does a shallow clone only if GIT_TAG is specified but GIT_COMMIT is
not.
* pybind11 self-builder is modified to allow a git commit override.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz deleted the lg-shallow branch February 20, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments