JuliaDynamics/DrWatson.jl

Pkg.activate is not enough for forcing correct environment

Ouverte

#245 ouverte le 28 avr. 2021

 (6 commentaires) (0 réaction) (0 personne assignée)Julia (94 forks)batch import
good first issue

Métriques du dépôt

Stars
 (915 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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"

Guide contributeur