Skip to content

Commit f4e131d

Browse files
authored
Lint also needs to set the default JPath for mixins that vendor libraries. (#19)
Signed-off-by: Tom Wilkie <[email protected]>
1 parent 6f638e8 commit f4e131d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/mixtool/lint.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ func lintCommand() cli.Command {
5959
}
6060

6161
func lintAction(c *cli.Context) error {
62+
jPath := c.StringSlice("jpath")
63+
jPath = availableVendor(jPath)
64+
6265
options := mixer.LintOptions{
63-
JPaths: c.StringSlice("jpath"),
66+
JPaths: jPath,
6467
Grafana: c.BoolT("grafana"),
6568
Prometheus: c.BoolT("prometheus"),
6669
}

0 commit comments

Comments
 (0)