Skip to content

Commit

Permalink
Remove mentions of “home project” in documentation and comments (#3547)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
(cherry picked from commit 6024c0f)
  • Loading branch information
Socob authored and IanButterworth committed Aug 18, 2023
1 parent f13ef92 commit a80b3c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/Pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,7 @@ The logic for what path is activated is as follows:
activate the environment at the tracked path.
* Otherwise, `s` is interpreted as a non-existing path, which is then activated.
If no argument is given to `activate`, then activate the home project.
The home project is specified by either the `--project` command line option to
the julia executable, or the `JULIA_PROJECT` environment variable.
If no argument is given to `activate`, then use the first project found in `LOAD_PATH`.
# Examples
```
Expand Down
2 changes: 1 addition & 1 deletion src/REPLMode/command_declarations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ PSA[:name => "activate",
activate [--shared] path
activate --temp
Activate the environment at the given `path`, or the home project environment if no `path` is specified.
Activate the environment at the given `path`, or use the first project found in `LOAD_PATH` if no `path` is specified.
The active environment is the environment that is modified by executing package commands.
When the option `--shared` is given, `path` will be assumed to be a directory name and searched for in the
`environments` folders of the depots in the depot stack. In case no such environment exists in any of the depots,
Expand Down
2 changes: 1 addition & 1 deletion test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using ..Utils
cd(mkdir("tests"))
Pkg.activate("Foo") # activate developed Foo from another directory
@test Base.active_project() == joinpath(path, "modules", "Foo", "Project.toml")
Pkg.activate() # activate home project
Pkg.activate() # activate LOAD_PATH project
@test Base.ACTIVE_PROJECT[] === nothing
end end
end
Expand Down
2 changes: 1 addition & 1 deletion test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Pkg._auto_gc_enabled[] = false
source053 = pkg.source
source053_time = mtime(pkg.source)
end
# - The home project was automatically created.
# - The active project was automatically created.
@test haskey(Pkg.project().dependencies, "Example")
@test length(Pkg.project().dependencies) == 1
# Now we install the same package at a different version:
Expand Down
2 changes: 1 addition & 1 deletion test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ temp_pkg_dir() do project_path
pkg"activate --shared Foo" # activate existing shared Foo
@test Base.active_project() == joinpath(tmpdir, "Project.toml")
pop!(Base.DEPOT_PATH)
pkg"activate" # activate home project
pkg"activate" # activate LOAD_PATH project
@test Base.ACTIVE_PROJECT[] === nothing
# expansion of ~
if !Sys.iswindows()
Expand Down

0 comments on commit a80b3c9

Please sign in to comment.