diff --git a/src/curation/index.jl b/src/curation/index.jl index 06d17c0..93a7c3d 100644 --- a/src/curation/index.jl +++ b/src/curation/index.jl @@ -205,7 +205,13 @@ end function tag(path::AbstractString) last_tag = if haskey(ENV, "LAST_QUBOLIB_TAG") - parse(VersionNumber, ENV["LAST_QUBOLIB_TAG"]) + x = tryparse(VersionNumber, ENV["LAST_QUBOLIB_TAG"]) + + if isnothing(x) + v"0.1.0" + else + x + end else last_tag_path = abspath(path, "last.tag")