Skip to content

Commit

Permalink
always allow stdlibs to update
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Oct 26, 2021
1 parent 2691839 commit 7163d1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ function resolve_versions!(env::EnvCache, registries::Vector{Registry.RegistryIn
for pkg in pkgs
names[pkg.uuid] = pkg.name
end
reqs = Resolve.Requires(pkg.uuid => VersionSpec(pkg.version) for pkg in pkgs)

# Unless using the unbounded or historical resolver, always allow stdlibs to update. Helps if the previous resolve
# happened on a different julia version / commit and the stdlib version in the manifest is not the current stdlib version
unbind_stdlibs = julia_version === VERSION
reqs = Resolve.Requires(pkg.uuid => is_stdlib(pkg.uuid) && unbind_stdlibs ? VersionSpec("*") : VersionSpec(pkg.version) for pkg in pkgs)
graph, compat_map = deps_graph(env, registries, names, reqs, fixed, julia_version)
Resolve.simplify_graph!(graph)
vers = Resolve.resolve(graph)
Expand Down

0 comments on commit 7163d1c

Please sign in to comment.