Skip to content

fix(docker): rewrite github ssh git deps to https for npm build - #1700

Merged
Re-bin merged 3 commits into
HKUDS:mainfrom
Wenzhang-Chen:fix/docker-npm-git-https
Apr 4, 2026
Merged

Re-bin merged 3 commits into
HKUDS:mainfrom
Wenzhang-Chen:fix/docker-npm-git-https

Conversation

@Wenzhang-Chen

Copy link
Copy Markdown
Contributor

See #1699.

@chengyongru chengyongru added the enhancement New feature or request label Mar 28, 2026

@Re-bin Re-bin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This change is now solid.

The original idea was right: make Docker builds stop depending on GitHub SSH access when npm install pulls git-based dependencies. But the first version only looked correct on the surface. It configured the same git config url.<base>.insteadOf key twice, which means one rewrite could overwrite the other and leave part of the failure mode unfixed.

I merged latest main and tightened the Dockerfile so both GitHub SSH URL forms are preserved as rewrite rules:

  • ssh://git@github.com/...
  • git@github.com:...

That makes the fix match the actual issue report instead of only partially addressing it.

@Re-bin
Re-bin merged commit f498332 into HKUDS:main Apr 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants