From 2b259e76425bede9c879650143d749d3651e729c Mon Sep 17 00:00:00 2001 From: Marcos Navarro Date: Tue, 10 Dec 2024 22:44:28 +0900 Subject: [PATCH] PR feedback, small adjustment to manifest AddFile check for site configuration files. Compare the filename as is since site configuration is looked for only on the project root --- internal/bundles/manifest.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/bundles/manifest.go b/internal/bundles/manifest.go index 0a911bcbf..ea1f4515f 100644 --- a/internal/bundles/manifest.go +++ b/internal/bundles/manifest.go @@ -9,7 +9,6 @@ import ( "fmt" "io" "sort" - "strings" "github.com/posit-dev/publisher/internal/clients/connect" "github.com/posit-dev/publisher/internal/config" @@ -206,7 +205,7 @@ func (manifest *Manifest) AddFile(path string, fileMD5 []byte) { // Update manifest content category if a file being added is a site configuration for _, ymlFile := range util.KnownSiteYmlConfigFiles { - if strings.HasSuffix(path, ymlFile) { + if path == ymlFile { manifest.Metadata.ContentCategory = "site" break }