From b679c3322eff83987127962f49c60ba0a9a77de3 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jun 14 2019 18:31:37 +0000 Subject: Always install SFiles whatever the arch Signed-off-by: Robert-André Mauchin --- diff --git a/cmd/golist/golist.go b/cmd/golist/golist.go index 1ce6bf0..603b25a 100644 --- a/cmd/golist/golist.go +++ b/cmd/golist/golist.go @@ -78,6 +78,7 @@ func main() { cli.StringSliceFlag{ Name: "include-extension, e", Usage: "Include all files with the extension in the recognized resources, e.g. .proto, .tmpl", + Value: &cli.StringSlice{".proto", ".md", ".s"}, }, cli.BoolFlag{ Name: "json", diff --git a/pkg/util/util.go b/pkg/util/util.go index 70f9b2b..4812399 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -78,6 +78,7 @@ type OtherResources struct { ProtoFiles []string TmplFiles []string MDFiles []string + SFiles []string Other []string } @@ -154,6 +155,8 @@ func (p *PackageInfoCollector) CollectPackageInfos(packagePath string) error { p.otherResources.ProtoFiles = append(p.otherResources.ProtoFiles, path) case ".md": p.otherResources.MDFiles = append(p.otherResources.MDFiles, path) + case ".s": + p.otherResources.SFiles = append(p.otherResources.SFiles, path) default: p.otherResources.Other = append(p.otherResources.Other, path) } @@ -278,6 +281,9 @@ func (p *PackageInfoCollector) CollectInstalledResources() ([]string, error) { if p.otherResources.MDFiles != nil { resources = append(resources, p.otherResources.MDFiles...) } + if p.otherResources.SFiles != nil { + resources = append(resources, p.otherResources.SFiles...) + } if p.otherResources.Other != nil { resources = append(resources, p.otherResources.Other...) }