Skip to content

Commit

Permalink
yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Jan 30, 2024
1 parent 62003f6 commit af7b699
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/pluto integration/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ import Pkg
pkg_source = include("./DEV EDIT ME pluto pkg source.jl")

if pkg_source !== nothing
if pkg_source.rev === nothing

is_dev = if hasfield(typeof(pkg_source), :rev)
pkg_source.rev === nothing
else
pkg_source.repo.rev === nothing
end

if is_dev
Pkg.develop(pkg_source)
else
Pkg.add(pkg_source)
Expand Down

0 comments on commit af7b699

Please sign in to comment.