-
-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4036 from JuliaLang/backports-release-1.10
- Loading branch information
Showing
12 changed files
with
129 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,9 +55,10 @@ temp_pkg_dir(;rm=false) do project_path; cd(project_path) do; | |
tmp_pkg_path = mktempdir() | ||
|
||
pkg"activate ." | ||
pkg"add [email protected]" | ||
pkg"add [email protected].3" | ||
@test isinstalled(TEST_PKG) | ||
v = Pkg.dependencies()[TEST_PKG.uuid].version | ||
@test v == v"0.5.3" | ||
pkg"rm Example" | ||
pkg"add Example, Random" | ||
pkg"rm Example Random" | ||
|
@@ -120,6 +121,8 @@ temp_pkg_dir(;rm=false) do project_path; cd(project_path) do; | |
mktempdir() do tmp_dev_dir | ||
withenv("JULIA_PKG_DEVDIR" => tmp_dev_dir) do | ||
pkg"develop Example" | ||
pkg"develop Example,PackageCompiler" | ||
pkg"develop Example PackageCompiler" | ||
|
||
# Copy the manifest + project and see that we can resolve it in a new environment | ||
# and get all the packages installed | ||
|
@@ -723,4 +726,15 @@ end | |
end | ||
end | ||
|
||
@testset "JuliaLang/julia #55850" begin | ||
tmp_55850 = mktempdir() | ||
tmp_sym_link = joinpath(tmp_55850, "sym") | ||
symlink(tmp_55850, tmp_sym_link; dir_target=true) | ||
# DEPOT_PATH must stay only the temp directory otherwise the bug is hidden | ||
withenv("JULIA_DEPOT_PATH" => tmp_sym_link, "JULIA_LOAD_PATH" => nothing) do | ||
prompt = readchomp(`$(Base.julia_cmd()[1]) --project=$(dirname(@__DIR__)) --startup-file=no -e "using Pkg: Pkg, REPLMode; Pkg.activate(io=devnull); print(REPLMode.promptf())"`) | ||
@test prompt == "(@v$(VERSION.major).$(VERSION.minor)) pkg> " | ||
end | ||
end | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters