From 1af05cc0ef693ea429a078a804e319cc037e5342 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 29 Nov 2024 23:32:19 -0600 Subject: publish every *.pb.go file --- repo.protofiles.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repo.protofiles.go') diff --git a/repo.protofiles.go b/repo.protofiles.go index 2fadc9c..2087830 100644 --- a/repo.protofiles.go +++ b/repo.protofiles.go @@ -50,7 +50,8 @@ func (repo *Repo) IsProtobuf() (bool, []string, error) { var allc []string for _, testf := range fullc { if strings.HasSuffix(testf, ".pb.go") { - allc = append(allc, testf) + basef := filepath.Base(testf) + allc = append(allc, basef) // no, not the 3.5" floppy disks } } return anyfound, allc, err -- cgit v1.2.3