Skip to content

Commit a90a8cf

Browse files
authored
fix(ci): switch gallery-agent to sigs.k8s.io/yaml (#9397)
The gallery-agent lives under .github/, which Go tooling treats as a hidden directory and excludes from './...' expansion. That means 'go mod tidy' (run on every dependabot dependency bump) repeatedly strips github.com/ghodss/yaml from go.mod/go.sum, breaking 'go run ./.github/gallery-agent' with a missing go.sum entry error. Switch to sigs.k8s.io/yaml — API-compatible with ghodss/yaml and already pulled in as a transitive dependency via non-hidden packages, so tidy can no longer remove it.
1 parent 12b069f commit a90a8cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/gallery-agent/gallery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os"
88
"strings"
99

10-
"github.com/ghodss/yaml"
1110
"github.com/mudler/LocalAI/core/gallery/importers"
11+
"sigs.k8s.io/yaml"
1212
)
1313

1414
func formatTextContent(text string) string {

.github/gallery-agent/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"regexp"
1010
"strings"
1111

12-
"github.com/ghodss/yaml"
1312
hfapi "github.com/mudler/LocalAI/pkg/huggingface-api"
13+
"sigs.k8s.io/yaml"
1414
)
1515

1616
var galleryIndexPath = os.Getenv("GALLERY_INDEX_PATH")

0 commit comments

Comments
 (0)