From af7b69931998a89a0661110c9e299a296835f5d3 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 30 Jan 2024 11:47:15 +0100 Subject: [PATCH] yolo --- test/pluto integration/run.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/pluto integration/run.jl b/test/pluto integration/run.jl index 790fbc8..8198f8f 100644 --- a/test/pluto integration/run.jl +++ b/test/pluto integration/run.jl @@ -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)