From 0329c2d8773b099d0d35b70a1a4e547b1e53914a Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Sun, 31 Dec 2023 14:27:59 -0800 Subject: [PATCH] use subdir to be consistent with existing package key --- src/register.jl | 4 ++-- test/regedit.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/register.jl b/src/register.jl index e4df294..d2e4239 100644 --- a/src/register.jl +++ b/src/register.jl @@ -343,7 +343,7 @@ function update_versions_file(pkg::Project, version_info["git-tag-name"] = tag_name end if subdir != "" - version_info["git-tree-path"] = subdir + version_info["subdir"] = subdir end versions_data[string(pkg.version)] = version_info @@ -364,7 +364,7 @@ function update_versions_file(pkg::Project, return 3 elseif x == "git-tag-name" return 4 - elseif x == "git-tree-path" + elseif x == "subdir" return 5 elseif x == "yanked" return 100 diff --git a/test/regedit.jl b/test/regedit.jl index a8dd7ec..d4b7ca9 100644 --- a/test/regedit.jl +++ b/test/regedit.jl @@ -304,10 +304,10 @@ end @test data isa Dict @test collect(keys(data)) == ["1.0.0"] @test data["1.0.0"] isa Dict - @test sort!(collect(keys(data["1.0.0"]))) == ["git-commit-sha1", "git-tree-path", "git-tree-sha1"] + @test sort!(collect(keys(data["1.0.0"]))) == ["git-commit-sha1", "git-tree-sha1", "subdir"] @test data["1.0.0"]["git-tree-sha1"] == tree_hash @test data["1.0.0"]["git-commit-sha1"] == commit_hash - @test data["1.0.0"]["git-tree-path"] == subdir + @test data["1.0.0"]["subdir"] == subdir check_versions!(pkg, data, status) # This version was just registered, should be a complaint now.