Skip to content

Commit

Permalink
Add cargo files after tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Feb 20, 2024
1 parent 095e83c commit 99c47da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion attribution/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def tag_release(version: Version, message: Optional[str]) -> None:
sh(f"git add {path}")
if cargo_packages := project.config.get("cargo_packages"):
for cargo_file in CargoFile.search(project, cargo_packages):
cargo_file.write()
path = cargo_file.write()
sh(f"git add {path}")
sh(f"git add {path.with_suffix('.lock')}")

# update commit and tag
sh("git commit --amend --no-edit")
Expand Down

1 comment on commit 99c47da

@amyreese
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #169

Please sign in to comment.