fix(duo): honor custom Duo CLI path on unsupported CPU architectures

Description

Duo CLI only ships official binaries for amd64 and arm64, but glab is also built for other GOARCH values (like downstream in Fedora with s390x, ppc64le).

run() previously called ManagedBinaryPath() before considering GLAB_DUO_CLI_BINARY_PATH / duo_cli_binary_path, so detectPlatform() failed immediately with ErrUnsupportedPlatform and unit tests (and any custom-binary workflow) never reached validateBinaryPath.

This also fixes TestDetectPlatform and TestRunWithCustomPath_Validation failing on arches without a managed Duo build, since it expects custom-path validation errors instead of an early unsupported-platform error.

Read the configured path first and treat unsupported platform as non-fatal when a custom binary is set; short-circuit EnsureInstalled the same way so validation and pass-through work on those arches without implying a managed download exists.

Resolves #8265 (closed)

How has this been tested?

Applying this patch allows the unit tests to pass in Fedora when it's being built for s390x or ppc64le.

Merge request reports

Loading