Skip to content

Mark copied git repo as a safe directory (#114)#115

Merged
diptorupd merged 1 commit intorelease/0.2.5+amd.2from
amd-integration
Jan 13, 2026
Merged

Mark copied git repo as a safe directory (#114)#115
diptorupd merged 1 commit intorelease/0.2.5+amd.2from
amd-integration

Conversation

@diptorupd
Copy link
Copy Markdown
Collaborator

The rocm ci build system fetches the git repo separately and then copies it into the final docker image. Both steps use different uids that causes git to fail inside the docker image due to invalid directory ownership issues. A corollary of git failing is that our wheel versioning that depends on git describe fails and we end up with 0.0.0 as the fallback version.

The PR adds a RUN git config --global --add safe.directory /root/flashinfer step in our CI docker file to temporarily workaround the issue.

The rocm ci build system fetches the git repo separately and then copies
it into the final docker image. Both steps use different uids that
causes git to fail inside the docker image due to invalid directory
ownership issues. A corollary of `git` failing is that our wheel
versioning that depends on `git describe` fails and we end up with
`0.0.0` as the fallback version.

The PR adds a `RUN git config --global --add safe.directory
/root/flashinfer` step in our CI docker file to temporarily workaround
the issue.
@demandal25 demandal25 requested a review from Copilot January 13, 2026 16:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a git ownership issue in the ROCm CI Docker build process by marking the copied repository directory as safe. The issue occurs when the git repository is fetched with one UID and then copied into the Docker image with a different UID, causing git commands to fail and resulting in incorrect wheel versioning (defaulting to 0.0.0).

Changes:

  • Added a git configuration command to mark /root/flashinfer as a safe directory in the ROCm CI Dockerfile

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@diptorupd diptorupd merged commit 17bb168 into release/0.2.5+amd.2 Jan 13, 2026
1 check passed
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.

3 participants