Skip to content

Commit 23e4c1c

Browse files
committed
Change a type in JuliaTestEnv
1 parent a463e00 commit 23e4c1c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/layer_testitems.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,7 @@ Salsa.@derived function derived_testenv(rt, uri)
136136
env_content_hash = hash(derived_package(rt, package_uri).content_hash)
137137
end
138138

139-
return JuliaTestEnv(package_name, package_uri, project_uri, env_content_hash)
139+
# We construct a string for the env content hash here so that later when we
140+
# deserialize it with JSON.jl we don't end up with Int conversion issues
141+
return JuliaTestEnv(package_name, package_uri, project_uri, "x$env_content_hash")
140142
end

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Details of a Julia test environment.
181181
package_name::Union{String,Nothing}
182182
package_uri::Union{URI,Nothing}
183183
project_uri::Union{URI,Nothing}
184-
env_content_hash::Union{UInt,Nothing}
184+
env_content_hash::Union{String,Nothing}
185185
end
186186

187187
"""

0 commit comments

Comments
 (0)