Skip to content

Commit 9e4ed74

Browse files
authored
integration: look for the "hf" tool in integration tests (#16765)
The "huggingface-cli" tool is deprecated, so only try to use the "hf" tool.
1 parent bbb40a0 commit 9e4ed74

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎integration/create_test.go‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ func skipIfRemote(t *testing.T) {
4848

4949
// findHFCLI returns the path to the HuggingFace CLI, or "" if not found.
5050
func findHFCLI() string {
51-
for _, name := range []string{"huggingface-cli", "hf"} {
52-
if p, err := exec.LookPath(name); err == nil {
53-
return p
54-
}
51+
if p, err := exec.LookPath("hf"); err == nil {
52+
return p
5553
}
5654
return ""
5755
}

0 commit comments

Comments
 (0)