Skip to content

Commit d4f84b5

Browse files
authored
AutoMerge: temporarily disable the "Require [compat] for stdlib dependencies" feature"
1 parent a3ceb69 commit d4f84b5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/AutoMerge/guidelines.jl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
using HTTP: HTTP
22

3+
# TODO: change this to `true` once Julia 1.6 is no longer
4+
# the LTS.
5+
const _AUTOMERGE_REQUIRE_STDLIB_COMPAT = false
6+
37
const guideline_registry_consistency_tests_pass = Guideline(;
48
info="Registy consistency tests",
59
docs=nothing,
@@ -91,8 +95,15 @@ function meets_compat_for_all_deps(working_directory::AbstractString, pkg, versi
9195
for version_range in keys(deps)
9296
if version in Pkg.Types.VersionRange(version_range)
9397
for name in keys(deps[version_range])
94-
if !is_jll_name(name)
95-
@debug("Found a new (non-JLL) dependency: $(name)")
98+
if _AUTOMERGE_REQUIRE_STDLIB_COMPAT
99+
debug_msg = "Found a new (non-JLL) dependency: $(name)"
100+
apply_compat_requirement = !is_jll_name(name)
101+
else
102+
debug_msg = "Found a new (non-stdlib non-JLL) dependency: $(name)"
103+
apply_compat_requirement = !is_jll_name(name) && !is_julia_stdlib(name)
104+
end
105+
if apply_compat_requirement
106+
@debug debug_msg
96107
dep_has_compat_with_upper_bound[name] = false
97108
end
98109
end

0 commit comments

Comments
 (0)