Skip to content

Commit eb96811

Browse files
fredrikekreKristofferC
authored andcommitted
don't use startup.jl when precompiling, building and testing (#470)
unless the user has explicitly asked for it with --startup-file=yes (cherry picked from commit 40d7f27f2ff08ec466df536f267129a9f5e950b4)
1 parent abd9072 commit eb96811

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

stdlib/Pkg/src/Operations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ function build_versions(ctx::Context, uuids::Vector{UUID}; might_need_to_resolve
10461046
"""
10471047
cmd = ```
10481048
$(Base.julia_cmd()) -O0 --color=no --history-file=no
1049-
--startup-file=$(Base.JLOptions().startupfile != 2 ? "yes" : "no")
1049+
--startup-file=$(Base.JLOptions().startupfile == 1 ? "yes" : "no")
10501050
--compiled-modules=$(Bool(Base.JLOptions().use_compiled_modules) ? "yes" : "no")
10511051
--eval $code
10521052
```

stdlib/Pkg/src/REPLMode.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,6 @@ Create a project called `pkgname` in the current folder.
12461246
precompile
12471247
12481248
Precompile all the dependencies of the project by running `import` on all of them in a new process.
1249-
The `startup.jl` file is disabled during precompilation unless julia is started with `--startup-file=yes`.
12501249
""",
12511250
),( CMD_STATUS,
12521251
["status", "st"],

0 commit comments

Comments
 (0)