File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11# This file is a part of Julia. License is MIT: https://julialang.org/license
22
33const DEFAULT_MAX_TIME = " 300"
4- const PREFERRED_VERSION_WEIGHT_BONUS = VersionWeight (typemax (Int32))
4+ # Prefer loaded versions, but not so strongly that it overrides compatibility constraints.
5+ # This bonus is added to the version weight of already-loaded packages, making them more
6+ # favorable than other versions but not creating hard requirements.
7+ const PREFERRED_VERSION_WEIGHT_BONUS = VersionWeight (100 , 0 , 0 )
58
69# Some parameters to drive the decimation process
710mutable struct MaxSumParams
Original file line number Diff line number Diff line change @@ -431,13 +431,13 @@ end
431431 # Tests that [email protected] does not get installed 432432 temp_pkg_dir () do env
433433 Pkg. Registry. add (url = " https://github.com/JuliaRegistries/Test" )
434- Pkg. add (" Example" ; prefer_loaded_versions = false )
434+ Pkg. add (" Example" )
435435 @test manifest_info (EnvCache (). manifest, uuid). version == v " 0.5.0"
436436 Pkg. update () # should not update Example
437437 @test manifest_info (EnvCache (). manifest, uuid). version == v " 0.5.0"
438438 @test_throws Pkg. Resolve. ResolverError Pkg. add (PackageSpec (name = " Example" , version = v " 0.5.1" ))
439439 Pkg. rm (" Example" )
440- Pkg. add (" JSON" ; prefer_loaded_versions = false ) # depends on Example
440+ Pkg. add (" JSON" ) # depends on Example
441441 @test manifest_info (EnvCache (). manifest, uuid). version == v " 0.5.0"
442442 Pkg. update ()
443443 @test manifest_info (EnvCache (). manifest, uuid). version == v " 0.5.0"
You can’t perform that action at this time.
0 commit comments