Skip to content

Commit

Permalink
Respect the new version
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Jan 12, 2024
1 parent 37fdfea commit f1ed22f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion should_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ def get_index_url() -> str:
cfg = tomllib.load(fp)

try:
version = cfg["packages"][args.project]["version"]
version = cfg["packages"][args.project].get("mod_version")
if version is None:
version = cfg["packages"][args.project]["version"]
except KeyError:
parser.error(f"{args.project} not found in {args.config}")

Expand Down

0 comments on commit f1ed22f

Please sign in to comment.