File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 566566# # generic project & manifest API ##
567567
568568const project_names = (" JuliaProject.toml" , " Project.toml" )
569- const manifest_names = (" JuliaManifest.toml" , " Manifest.toml" )
569+ const manifest_names = (
570+ " JuliaManifest.$(VERSION . major) .$(VERSION . minor) .toml" ,
571+ " Manifest.$(VERSION . major) .$(VERSION . minor) .toml" ,
572+ " JuliaManifest.toml" ,
573+ " Manifest.toml" ,
574+ )
570575const preferences_names = (" JuliaLocalPreferences.toml" , " LocalPreferences.toml" )
571576
572577function locate_project_file (env:: String )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function parse_toml(path::String)
1818 Base. parsed_toml (path)
1919end
2020
21- # keep in sync with Base.project_names and Base.manifest_names
21+ # keep in sync with Base.project_names
2222const artifact_names = (" JuliaArtifacts.toml" , " Artifacts.toml" )
2323
2424const ARTIFACTS_DIR_OVERRIDE = Ref {Union{String,Nothing}} (nothing )
Original file line number Diff line number Diff line change 258258@testset " `Artifacts.artifact_names` and friends" begin
259259 n = length (Artifacts. artifact_names)
260260 @test length (Base. project_names) == n
261- @test length (Base. manifest_names) == n
261+ @test length (Base. manifest_names) == 2 n # there are two manifest names per project name
262262 @test length (Base. preferences_names) == n
263263end
Original file line number Diff line number Diff line change 795795@testset " `Base.project_names` and friends" begin
796796 # Some functions in Pkg assumes that these tuples have the same length
797797 n = length (Base. project_names)
798- @test length (Base. manifest_names) == n
799798 @test length (Base. preferences_names) == n
799+
800+ # there are two manifest names per project name
801+ @test length (Base. manifest_names) == 2 n
800802end
801803
802804@testset " Manifest formats" begin
You can’t perform that action at this time.
0 commit comments