Skip to content

Commit

Permalink
"git clean" during checkout of dependency
Browse files Browse the repository at this point in the history
This repo defines "recipes" for dependencies which are essentially build
scripts.  Some of the build systems used (or at least the way they are
used) will cache some state between invocations, which is confusing when
testing different values for things like "LDFLAGS" and
"LD_LIBRARY_PATH".  Specifically, the cmake based build scripts.

This change ensures that when force re-running a given recipe, we do a
full clean of the repo.

n.b.: we are *not* cleaning the target install dir.
  • Loading branch information
Paul Groudas committed May 3, 2021
1 parent b79d697 commit abbe369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mcrouter/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function gitEnsureTreeish {
git checkout "$1" --
# Ensures that there are edited files in git index or working directory
git reset --hard HEAD
git clean -fdx .
}

[ -n "$1" ] || die "PKG_DIR missing"
Expand Down

0 comments on commit abbe369

Please sign in to comment.