Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Dec 26, 2023
1 parent ca337b7 commit 13b8203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def run(*cmd):
return subprocess.check_output(cmd, env=os.environ.copy(), shell=True)

def get_cargo_version(project):
output = run("cd", project, "&&", "cargo", "metadata", "--no-deps")
output = run("cd", project, "&&", "cargo", "metadata", "--no-deps", "--format-version", "1")
for item in json.loads(output)["packages"]:
if item["name"] == project:
return item["version"]
Expand Down

0 comments on commit 13b8203

Please sign in to comment.