Skip to content

Commit 1a35f1e

Browse files
manually set julia_version in manifest
1 parent f195d3f commit 1a35f1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Prefix.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,12 @@ function setup_dependencies(prefix::Prefix,
718718
if !isempty(stdlib_pkgspecs)
719719
# TODO: shouldn't this take platform?
720720
Pkg_add(stdlib_pkgspecs; io=outs, julia_version=nothing)
721+
722+
# Pkg.add doesn't record julia_version when nothing, so we need to manually set it
723+
# to avoid warnings about the manifest not having a julia version.
724+
ctx = Pkg.Types.Context()
725+
ctx.env.manifest.julia_version = Pkg.Operations.dropbuild(julia_version)
726+
Pkg.write_manifest(ctx.env)
721727
end
722728

723729
# Load their Artifacts.toml files

0 commit comments

Comments
 (0)