From 9e4ed74efe636ecbf29a10b42d8714d04ec61d6c Mon Sep 17 00:00:00 2001 From: Patrick Devine Date: Tue, 16 Jun 2026 11:04:54 -0700 Subject: [PATCH] integration: look for the "hf" tool in integration tests (#16765) The "huggingface-cli" tool is deprecated, so only try to use the "hf" tool. --- integration/create_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/integration/create_test.go b/integration/create_test.go index e3ef5acc..cca2d427 100644 --- a/integration/create_test.go +++ b/integration/create_test.go @@ -48,10 +48,8 @@ func skipIfRemote(t *testing.T) { // findHFCLI returns the path to the HuggingFace CLI, or "" if not found. func findHFCLI() string { - for _, name := range []string{"huggingface-cli", "hf"} { - if p, err := exec.LookPath(name); err == nil { - return p - } + if p, err := exec.LookPath("hf"); err == nil { + return p } return "" }