From a90a8cf1d0bd256ac46b2ababbcebf9fb9b5eb74 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 17 Apr 2026 10:10:42 +0200 Subject: [PATCH] fix(ci): switch gallery-agent to sigs.k8s.io/yaml (#9397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/gallery-agent/gallery.go | 2 +- .github/gallery-agent/helpers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/gallery-agent/gallery.go b/.github/gallery-agent/gallery.go index f288aee10..445fdc789 100644 --- a/.github/gallery-agent/gallery.go +++ b/.github/gallery-agent/gallery.go @@ -7,8 +7,8 @@ import ( "os" "strings" - "github.com/ghodss/yaml" "github.com/mudler/LocalAI/core/gallery/importers" + "sigs.k8s.io/yaml" ) func formatTextContent(text string) string { diff --git a/.github/gallery-agent/helpers.go b/.github/gallery-agent/helpers.go index ab30ca25f..5f569e6d9 100644 --- a/.github/gallery-agent/helpers.go +++ b/.github/gallery-agent/helpers.go @@ -9,8 +9,8 @@ import ( "regexp" "strings" - "github.com/ghodss/yaml" hfapi "github.com/mudler/LocalAI/pkg/huggingface-api" + "sigs.k8s.io/yaml" ) var galleryIndexPath = os.Getenv("GALLERY_INDEX_PATH")