Skip to content

Conversation

@MichaelHatherly
Copy link
Member

This removes the LibGit2 dependency, which was initially added back in #4 do deal with Travis not using an actual git repo as the build directory. We had to vendor Base.url which brought in the LibGit2 dep. Instead change the logic in the url wrapper function to check whether Travis is the likely environment and generate an URL based solely on it's env vars, otherwise just use Base.url directly and whatever it's result is.

When LibGit2 isn't actually loaded (https://github.com/JuliaLang/julia/blob/08c87b20993dc969f42b1a6eb50b931c66f311de/base/methodshow.jl#L393-L395) then of course Base.url won't return what's needed, and maybe that's fine since you can just ensure LibGit2 is loaded in the process. This seems more straightforward than us internally falling back to a git that may or may not be available on the PATH.


I'm not sure how much use Travis sees these days... I've not touched it in years, but perhaps there's still users so I didn't want to completely remove the feature. (We can also just delete the feature if there's no users :)

Due to some migration of code from base to `REPL` for docs rendering one of the
rendering tests was failing on 1.11.

Paper over this issue by just requiring the package in the tests for now. It
needs a better long-term solution though.
Copy link
Member

@mortenpi mortenpi left a comment

Choose a reason for hiding this comment

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

Even if it changes behavior a bit (not convinced it does meaningfully), I think this is a good simplification.

@MichaelHatherly MichaelHatherly merged commit 2df82e8 into master Mar 25, 2025
10 checks passed
@MichaelHatherly MichaelHatherly deleted the mh/no-libgit2 branch March 25, 2025 22:41
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.

4 participants