Skip to content

Commit

Permalink
fix: force nng checkout
Browse files Browse the repository at this point in the history
to prevent build failures like

error: The following untracked working tree files would be overwritten by checkout:
        cmake/FindmbedTLS.cmake

seems to be caused by case sensitivity differences beween file systems (FindmbedTLS.cmake vs FindMbedTLS.cmake)
  • Loading branch information
broglep-work committed Feb 1, 2024
1 parent d8d40ee commit 3b471a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self):
"""Clone nng and build it with cmake, with TLS enabled."""
if not os.path.exists(self.git_dir):
check_call("git clone {}".format(self.repo), shell=True)
check_call("git checkout {}".format(self.rev), shell=True, cwd=self.git_dir)
check_call("git checkout -f {}".format(self.rev), shell=True, cwd=self.git_dir)
if not os.path.exists(self.build_dir):
os.mkdir(self.build_dir)

Expand Down

0 comments on commit 3b471a3

Please sign in to comment.