Skip to content

Commit

Permalink
[backport] 🐛 Use RootCommandName for labels lookup (konveyor#138) (ko…
Browse files Browse the repository at this point in the history
…nveyor#139)

🐛 Use RootCommandName for labels lookup (konveyor#138)

Use RootCommandName for labels lookup

Hardcoded `kantra` executable path could be different in other build
environments, using Settings.RootCommandName to not depend on kantra
name.

Fixes: https://issues.redhat.com/browse/MTA-1998

Signed-off-by: Marek Aufart <[email protected]>
  • Loading branch information
aufi authored Jan 10, 2024
1 parent 3862095 commit 6f6c45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (a *analyzeCommand) ListLabels(ctx context.Context) error {
ctx,
WithEnv(runMode, runModeContainer),
WithVolumes(volumes),
WithEntrypointBin("/usr/local/bin/kantra"),
WithEntrypointBin(fmt.Sprintf("/usr/local/bin/%s", Settings.RootCommandName)),
WithEntrypointArgs(args...),
WithCleanup(a.cleanup),
)
Expand Down

0 comments on commit 6f6c45d

Please sign in to comment.