-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 Pkg to stdlib #25705
move Pkg to stdlib #25705
Conversation
base/interactiveutil.jl
Outdated
print(io, " Package Status:") | ||
if isdir(Pkg.dir()) | ||
if isdir(PKG_MODULE_REF[].dir()) |
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.
I think you might need to use invokelatest
here. @vtjnash should be able to confirm that.
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.
Seems to work ok actually.
stdlib/Pkg/src/Pkg.jl
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
.travis.yml
Outdated
@@ -144,7 +144,7 @@ script: | |||
- /tmp/julia/bin/julia -e 'versioninfo()' | |||
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.circleci/config.yml
need to be changed as well?
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.
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) |
.freebsdci.sh
Outdated
|
||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks.
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.
Is there anyway we could run this as julia test/runtests.jl test-Pkg/pkg
?
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.
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
.freebsdci.sh
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need --check-bounds=yes
?
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.
Don't think so, already gets applied at https://github.com/JuliaLang/julia/blob/master/test/testenv.jl#L20
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.
👌
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.