Skip to content

Conversation

@godnight10061
Copy link

Fixes #3319

dx new uses cargo-generate/libgit2 to clone templates. If a user has url.*.insteadOf rewrites in their global git config (e.g. rewriting https://github.com/ to an SSH/custom host), libgit2 can fail with class=Os/timeouts and dx would not hit the sanitized gitconfig retry.

This change makes the sanitized retry apply to any cargo-generate clone failure (using cargo-generate's common wrapper error), and treats cargo-generate panics as retryable.

Tests:

  • cargo fmt --all -- --check
  • cargo clippy --workspace --exclude dioxus-desktop --examples --tests --all-features --all-targets -- -D warnings
  • NDK_HOME=C:\\dummy-ndk cargo test --workspace --tests
  • cargo test --doc --workspace --all-features
  • manual: target\\release\\dx.exe new with url.insteadOf rewriting file:/// -> ssh://[email protected]:1/

@godnight10061 godnight10061 requested a review from a team as a code owner January 13, 2026 11:36
@jkelleyrtp jkelleyrtp added the cli Related to the dioxus-cli program label Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the dioxus-cli program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dx new command fails - v0.6.0

2 participants