Skip to content

Commit

Permalink
skip stdlibs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Oct 20, 2023
1 parent d6474bb commit aff097d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/downgrade.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for (i, line) in pairs(lines)
elseif compat && !isempty(line)
m = match(r"^([A-Za-z0-9]+)( *= *\")([^\"]*)(\".*)", line)
pkg, eq, ver, post = m.captures
if pkg == "julia"
if pkg in ["julia", "Markdown", "Pkg", "TOML"]
println("skipping $pkg: $ver")
continue
end
Expand All @@ -30,7 +30,11 @@ for (i, line) in pairs(lines)
elseif op in "^"
op = '^'
end
ver2 = "$op$ver"
ver2 = "$op$ver2"
if ver == ver2
println("skipping $pkg: $ver")
continue
end
lines[i] = "$pkg$eq$ver2$post"
println("downgrading $pkg: $ver -> $ver2")
elseif compat
Expand Down

0 comments on commit aff097d

Please sign in to comment.