aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-08-02 15:00:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-08-02 15:00:56 +0300
commit1eaee4b8d6b83e59f10f4bd7319c3b24fb29f722 (patch)
tree770d6cb573ef014b58f959bc5d1c0d5400ebea93
parentc6acae948248ac991b4502c4607ba49f77ba8646 (diff)
Add commented out hint-based versions of dependency declarations to buildfile
-rw-r--r--bdep-util/buildfile17
1 files changed, 11 insertions, 6 deletions
diff --git a/bdep-util/buildfile b/bdep-util/buildfile
index 317cb66..4229b62 100644
--- a/bdep-util/buildfile
+++ b/bdep-util/buildfile
@@ -4,10 +4,8 @@
import mods = libbutl.bash%bash{manifest-parser}
import mods += libbutl.bash%bash{standard-version}
-# @@ TMP Note that git-hooks/pre-commit, bdep-git-pre-commit, and
-# bdep-git-pre-commit-copyright-check have no dependencies on any bash
-# module. However, we add such dependencies for the bash module rule to
-# match. Eventually, there will be a better way to achieve that (hints).
+# @@ TMP Use the hint-based versions of the dependency declarations once the
+# toolchain requirement is 0.16.0.
#
# Note that git-hooks/pre-commit script just sources bdep-git-pre-commit. The
@@ -18,16 +16,23 @@ import mods += libbutl.bash%bash{standard-version}
#
git-hooks/
{
+# [rule_hint=bash] exe{pre-commit}: in{pre-commit}
exe{pre-commit}: in{pre-commit} $mods
exe{pre-commit}: ../exe{bdep-git-pre-commit}: install = true
}
+#[rule_hint=bash] exe{bdep-git-pre-commit}: in{git-pre-commit}
exe{bdep-git-pre-commit}: in{git-pre-commit} $mods
-exe{bdep-git-pre-commit}: exe{bdep-git-pre-commit-version-check \
- bdep-git-pre-commit-copyright-check}: install = true
+
+exe{bdep-git-pre-commit}: exe{bdep-git-pre-commit-version-check \
+ bdep-git-pre-commit-copyright-check}: \
+ install = true
exe{bdep-git-pre-commit-version-check}: in{git-pre-commit-version-check} $mods
+#[rule_hint=bash] \
+#exe{bdep-git-pre-commit-copyright-check}: in{git-pre-commit-copyright-check}
+
exe{bdep-git-pre-commit-copyright-check}: in{git-pre-commit-copyright-check} \
$mods