Skip to content

Commit

Permalink
correct comment about git submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Oct 3, 2024
1 parent ca12b8b commit e02dfe7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ shell_command(
tools=["cp"],
# execution_dependencies allows pants to invalidate the output
# of this command if the .gitmodules file changes (for example:
# if a submodule gets updated to a different commit).
# Theoretically, nothing else should modify .git/modules/.
# if a submodule gets updated to a different repo).
# Sadly this does not get invalidated if the submodule commit
# is updated. In our case, that should be rare. To work around
# If you update a submodule,
# this, kill the `pantsd` process after updating a submodule.
execution_dependencies=[":gitmodules"],
output_dependencies=[":gitmodules"],
output_directories=[".git/modules"],
Expand Down

0 comments on commit e02dfe7

Please sign in to comment.