Fix git clone failure in restricted Docker environments#2898
Draft
Fix git clone failure in restricted Docker environments#2898
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Set TMPDIR=/tmp before git clone operations to fix "unable to get random bytes for temporary file" error in Docker environments with restricted system calls (e.g., Synology NAS). Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Improve git_clone_scripts to save and restore the original TMPDIR value instead of unconditionally unsetting it, avoiding unintended side effects. Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix subscription functionality issue
Fix git clone failure in restricted Docker environments
Jan 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repository subscriptions fail on Synology NAS and similar Docker environments with
error: unable to get random bytes for temporary file: Function not implemented. Git's temporary file creation attempts to usegetrandom()syscall or/dev/random, which are blocked in containers with restricted syscalls.Changes
TMPDIR=/tmpbefore git clone operations ingit_clone_scripts()TMPDIRvalue to avoid side effectsThis forces git to use standard temp directory APIs instead of system random sources.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.