Skip to content

Commit

Permalink
update add_metadata with path to shared manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Nov 7, 2023
1 parent d23b431 commit 084e103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

julia_version = "1.9.3"
manifest_format = "2.0"
project_hash = "f38abc22b48e63729fc0df2250576035135df64d"
project_hash = "ad860e0b29f017be37a5536db110888623df4b6c"

[[deps.ADTypes]]
git-tree-sha1 = "5d2e21d7b0d8c22f67483ef95ebdc39c0e6b6003"
Expand Down
4 changes: 2 additions & 2 deletions build/create_binaries/add_metadata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function add_metadata(project_dir, license_file, output_dir, git_repo)
)
# the Manifest.toml always gives the exact version of Ribasim that was built
cp(
normpath(project_dir, "Manifest.toml"),
normpath(git_repo, "Manifest.toml"),
normpath(output_dir, "share/julia/Manifest.toml");
force = true,
)
Expand All @@ -35,7 +35,7 @@ function add_metadata(project_dir, license_file, output_dir, git_repo)
open(normpath(output_dir, "README.md"), "a") do io
# since the exact Ribasim version may be hard to find in the Manifest.toml file
# we can also extract that information, and add it to the README.md
manifest = TOML.parsefile(normpath(project_dir, "Manifest.toml"))
manifest = TOML.parsefile(normpath(git_repo, "Manifest.toml"))
if !haskey(manifest, "manifest_format")
error("Manifest.toml is in the old format, run Pkg.upgrade_manifest()")
end
Expand Down

0 comments on commit 084e103

Please sign in to comment.