move Pkg to stdlib#25705
Conversation
| println(io, " Package Directory: ", PKG_MODULE_REF[].dir()) | ||
| print(io, " Package Status:") | ||
| if isdir(Pkg.dir()) | ||
| if isdir(PKG_MODULE_REF[].dir()) |
There was a problem hiding this comment.
I think you might need to use invokelatest here. @vtjnash should be able to confirm that.
There was a problem hiding this comment.
Seems to work ok actually.
| export Dir, Types, Reqs, Cache, Read, Query, Resolve, Write, Entry | ||
| export dir, init, rm, add, available, installed, status, clone, checkout, | ||
| update, resolve, test, build, free, pin, PkgError, setprotocol! | ||
| #export Dir, Types, Reqs, Cache, Read, Query, Resolve, Write, Entry |
There was a problem hiding this comment.
These should probably be kept exported?
f394b70 to
d547f37
Compare
28816ca to
35167fe
Compare
|
Looks like freebsd is still trying to run |
|
Yeah, perhaps that can be removed @iblis17 Does anyone know the reason for splitting the tests into two parts for CI? Something with online / offline tests but |
| - pushd /tmp/julia/share/julia/test | ||
| - /tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN && | ||
| /tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg | ||
| /tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download |
There was a problem hiding this comment.
.circleci/config.yml need to be changed as well?
There was a problem hiding this comment.
Yes, I didn't know that existed, thanks.
|
I think I should provde cumstom shell script like Travis and CircleCI does in long-term... |
0733826 to
a42736b
Compare
See also: - JuliaLang#25705 (comment) - JuliaLang#25705 (comment) [av skip]
a42736b to
4154995
Compare
See also: - #25705 (comment) - #25705 (comment) [av skip]
3cd4549 to
150bdf1
Compare
|
All CI now fail with during precompile. Perhaps adding some debug printing to |
|
cc @vtjnash ^ |
|
I would suspect that the worldage error is: #25705 (comment) |
|
|
||
| gmake testall \ | ||
| test-download \ | ||
| test-Pkg \ # <- TODO: Should only test Pkg/pkg but no rule for test-Pkg/pkg |
There was a problem hiding this comment.
The comment in this line neutralized the effect of \ , so FreeBSD CI build failed.
line 73:
https://freebsdci.julialang.org/#/builders/1/builds/7031/steps/7/logs/stdio
There was a problem hiding this comment.
Is there anyway we could run this as julia test/runtests.jl test-Pkg/pkg?
There was a problem hiding this comment.
I think invoking ./usr/bin/julia should work
|
@vchuravy But the |
See also: - #25705 (comment) - #25705 (comment) [av skip]
4873924 to
74c884f
Compare
74c884f to
45c55e8
Compare
| test-pkg \ | ||
| test-libgit2-online | ||
| ./usr/bin/julia test/runtests.jl all | ||
| ./usr/bin/julia test/runtests.jl libgit2-online Pkg/pkg download |
There was a problem hiding this comment.
Don't think so, already gets applied at https://github.com/JuliaLang/julia/blob/master/test/testenv.jl#L20
|
The world error assertion was disabled from consulting |
Details on the versions checks being used: JuliaLang/julia#25705 (544a5b8e39) => 0.7.0-DEV.3656 JuliaLang/julia#27095 (a209a45450) => 0.7.0-DEV.5183

Pkg3 will replace Pkg(2) but moving it to the stdlib first will make that transition easier.
On the few places Pkg is used in base, I temporarily just used a Ref that Pkg fills.