Skip to content

Commit 96d1298

Browse files
Remove AutoHashEquals dependency. The RegistryData struct can no longer be compared for equality, which was a basically useless operation except for a roundtrip test.
1 parent 4bb89a5 commit 96d1298

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ authors = ["Stefan Karpinski <[email protected]>"]
44
version = "2.2.3"
55

66
[deps]
7-
AutoHashEquals = "15f4f7f2-30c1-5605-9d31-71845cf9641f"
87
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
98
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
109
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
1110
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1211

1312
[compat]
14-
AutoHashEquals = "0.2"
1513
julia = "1.1"
1614

1715
[extras]

src/RegistryTools.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export register
55
export check_and_update_registry_files
66
export find_registered_version
77

8-
using AutoHashEquals
98
using LibGit2
109
using Pkg: Pkg, TOML, GitTools
1110
using UUIDs

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function get_registry(
102102
return LibGit2.GitRepo(registry_path)
103103
end
104104

105-
@auto_hash_equals struct RegistryData
105+
struct RegistryData
106106
name::String
107107
uuid::UUID
108108
repo::Union{String, Nothing}

test/regedit.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ end
122122
written_registry = sprint(TOML.print, registry_data)
123123
written_registry_data = parse_registry(IOBuffer(written_registry))
124124

125-
@test written_registry_data == registry_data
125+
# Note: This used to be `written_registry_data ==
126+
# registry_data` but it seemed a little silly to depend on
127+
# AutoHashEquals for this test only.
128+
for field in fieldnames(RegistryData)
129+
@test getfield(written_registry_data, field) == getfield(registry_data, field)
130+
end
126131
@test written_registry == registry
127132
end
128133

0 commit comments

Comments
 (0)