-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Move LibGit2 to stdlib #25706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move LibGit2 to stdlib #25706
Conversation
base/methodshow.jl
Outdated
| end | ||
| else | ||
| return fileurl(file) | ||
| #= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to figure out what to do with this one url(::Method)...
test/docs.jl
Outdated
| @test @var(Base.enumerate) == x | ||
| @test @var(Iterators.enumerate) == x | ||
| @test @var(Base.Pkg.Dir.enumerate) == x | ||
| # @test @var(Base.Pkg.Dir.enumerate) == x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure exactly what this is testing, perhaps just a deep nesting.
| end | ||
| export current_module | ||
|
|
||
| # PR #22062 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These deprecations were made during the 0.7 cycle so they need to use @deprecate_moved or @deprecate_stdlib after #25692
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the behavior right now is:
julia> Base.LibGit2.prompt("Hello?")
WARNING: Base.LibGit2 is deprecated, run `import LibGit2` instead.
in module Base
┌ Warning: `LibGit2.prompt(msg::AbstractString; default::AbstractString="", password::Bool=false)` is deprecated, use `result = Base.prompt(msg, default=default, password=password); result === nothing ? "" : result` instead.
│ caller = top-level scope
└ @ Core :0
Hello?:yes
"yes"
Isn't that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't think that would happen. Neat. You get a deprecation warning for Base.LibGit2 and then a separate one for prompt. So as long as non of these were exported everything should be ok.
|
Is it possible to move out the libgit2 C library with this? It would be nice to be able to update the revision of the shared library during 1.0. |
doc/src/manual/packages.md
Outdated
| or by compiling from source. The list of registered Julia packages can be found at [http://pkg.julialang.org](http://pkg.julialang.org). | ||
| All package manager commands are found in the `Pkg` module, included in Julia's `Base` | ||
| install. | ||
| All package manager commands are found in the `Pkg` standard library, it becomes available after using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: "it becomes" --> "which becomes", to avoid a comma splice.
1.0 API stability definitely does not include never changing versions of libraries that we depend on. |
8834afe to
9accacc
Compare
9accacc to
103e875
Compare
|
So this causes the documentation warnings: to turn into: which apparently fails the documentation build... I have no idea how to fix it but I temporarily turned off |
f767eb8 to
494c570
Compare
494c570 to
5f909ec
Compare
|
CI straight flush. 🎉 So what is left to do here is:
Opinions? |
|
I certainly wouldn't want to lose method URLs in jupyter; it's a cool feature. |
5f909ec to
bbf2224
Compare
|
Is bbf2224 acceptable as a way out of this deadlock? |
|
Sure, let's do that for now. |
Made on top of #25705.
I have a few comments inline.
There was some problems with the documentation generation locally, so we will see what happens here.