Skip to content

Commit d9249d9

Browse files
committed
Ensure query --include-dependents being ignored
The `--include-dependents` query directive was being excluded for usages alongside `--filter` resulting in broken graphs.
1 parent f825ef4 commit d9249d9

File tree

2 files changed

+3
-2
lines changed
  • packages
    • kmono-cli/src/k16/kmono/cli/commands
    • kmono-core/src/k16/kmono/core

2 files changed

+3
-2
lines changed

packages/kmono-cli/src/k16/kmono/cli/commands/query.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
{:keys [root packages]} (common.context/load-context opts)
2929
packages (cond->> packages
3030
filter'
31-
(core.graph/filter-by (core.packages/name-matches? filter'))
31+
(core.graph/filter-by (core.packages/name-matches? filter')
32+
{:include-dependents include-dependents})
3233

3334
with-versions
3435
(kmono.version/resolve-package-versions root)

packages/kmono-core/src/k16/kmono/core/fs.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
(defn find-package-directories
119119
"Find packages in a given `root` that are described by the given set of
120120
`package-globs`."
121-
{:malli/schema [:-> :string [:or :string [:set :string]] [:vector ?Path]]}
121+
{:malli/schema [:-> :string [:or :string [:set :string]] [:set ?Path]]}
122122
[root package-globs]
123123
(let [root (-> (fs/path root)
124124
fs/normalize

0 commit comments

Comments
 (0)