-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c5f377
commit 768a505
Showing
6 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name = "PkgA" | ||
uuid = "6c9b85ad-11d6-47d3-a110-c5d298566edc" | ||
|
||
[deps] | ||
AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module PkgA | ||
|
||
import AbstractAlgebra: is_loaded_directly | ||
|
||
function __init__() | ||
println("PkgA is loaded directly: ", is_loaded_directly()) | ||
end | ||
|
||
|
||
end # module PkgA |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name = "PkgB" | ||
uuid = "f73b4364-4a9c-47d5-9866-25d0a9321a67" | ||
|
||
[deps] | ||
PkgA = "6c9b85ad-11d6-47d3-a110-c5d298566edc" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module PkgB | ||
|
||
using PkgA | ||
|
||
end # module PkgB |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[deps] | ||
AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d" | ||
PkgA = "6c9b85ad-11d6-47d3-a110-c5d298566edc" | ||
PkgB = "f73b4364-4a9c-47d5-9866-25d0a9321a67" |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Pkg | ||
cd(joinpath(@__DIR__, "is_loaded_directly")) | ||
Pkg.activate(".") | ||
Pkg.develop(PackageSpec(path="PkgA")) | ||
Pkg.develop(PackageSpec(path="PkgB")) | ||
Pkg.develop(PackageSpec(path=joinpath("..", ".."))) | ||
Pkg.precompile() | ||
|
||
println("####### Loading PkgA directly") | ||
withenv("JULIA_DEBUG" => "AbstractAlgebra") do | ||
run(`$(Base.julia_cmd()) --project=. -e 'using PkgA'`) | ||
end | ||
|
||
println("####### Loading PkgA indirectly") | ||
withenv("JULIA_DEBUG" => "AbstractAlgebra") do | ||
run(`$(Base.julia_cmd()) --project=. -e 'using PkgB'`) | ||
end |