Skip to content

Conversation

@KristofferC
Copy link
Member

@KristofferC KristofferC commented Jul 3, 2025

👨

I first tried to have Claude rearrange our regexes to fix #2230 but it had some problems. When I let it do a slightly bigger refactoring it worked well. I think the current iteration reads more clearly as well (and it added many tests for various permutations of inputs).

Fixes #2230
Fixes #2054
Fixes #3157


🤖

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

@github-project-automation github-project-automation bot moved this to New in Pkg.jl Jul 3, 2025
@KristofferC KristofferC changed the title Fix Git URL parsing to handle branch/tag/subdir specifiers Fix Git URL parsing to better handle branch/tag/subdir specifiers in complex URLs Jul 3, 2025
@IanButterworth IanButterworth moved this from New to In review in Pkg.jl Jul 3, 2025
@KristofferC KristofferC changed the title Fix Git URL parsing to better handle branch/tag/subdir specifiers in complex URLs Fix parsing to better handle branch/tag/subdir specifiers in complex URLs and paths Jul 3, 2025
@KristofferC KristofferC mentioned this pull request Jul 4, 2025
22 tasks
@KristofferC KristofferC force-pushed the pkg-2230 branch 2 times, most recently from 819d0b8 to 804f0a8 Compare July 4, 2025 12:32
KristofferC and others added 8 commits July 4, 2025 21:14
Previously, URLs like `https://github.com/user/repo.git#branch` were not parsed correctly, causing the entire URL including the specifier to be treated as a single URL component. This prevented proper separation of the base URL from branch/tag/subdir specifications.

Changes:
- Add preprocessing step to handle GitHub URLs with tree/commit paths
- Add preprocessing for Git URLs with #branch, @Version, and :subdir specifiers
- Fix regex pattern to properly match branch names with hyphens
- Add comprehensive tests for all URL formats

Fixes #2230

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@KristofferC KristofferC merged commit 94d9551 into master Jul 5, 2025
9 checks passed
@KristofferC KristofferC deleted the pkg-2230 branch July 5, 2025 07:12
@github-project-automation github-project-automation bot moved this from In review to Done in Pkg.jl Jul 5, 2025
@KristofferC KristofferC mentioned this pull request Jul 12, 2025
9 tasks
KristofferC added a commit that referenced this pull request Jul 15, 2025
…URLs and paths (#4299)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: KristofferC <kristoffer.carlsson@juliacomputing.com>
(cherry picked from commit 94d9551)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

use of hashtag # in branch name fails Add package with specific branch failing since julia 1.5.2 subdir REPL syntax does not work for git SSH URLs

1 participant