JuliaDynamics/DrWatson.jl

Pkg.activate is not enough for forcing correct environment

开放

#245 创建于 2021年4月28日

 (6 条评论) (0 个反应) (0 位负责人)Julia (94 个派生)batch import
good first issue

仓库指标

星标
 (915 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

This is perhaps a bit of a drive-by comment (I haven't used the package myself), and perhaps it has been discussed before but Pkg.activate is not enough to make sure you use the correct environment. Here is one example:

$ JULIA_LOAD_PATH=/tmp/Project.toml: julia --project=. -q
julia> Base.active_project()
"/tmp/tmp.ovN3Dd5eeE/Project.toml"

julia> Base.load_path()
4-element Vector{String}:
 "/tmp/Project.toml"
 "/tmp/tmp.ovN3Dd5eeE/Project.toml"
 "/home/fredrik/.julia/environments/v1.6/Project.toml"
 "/opt/julia/julia-1.6/share/julia/stdlib/v1.6"

贡献者指南