From 62157f024f000a60824b45863dec54a0b49f13c3 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 13 Apr 2024 17:54:10 -0600 Subject: fixup --- cmd/generate/src_upstreams.go | 3 ++- upstreams.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/generate/src_upstreams.go b/cmd/generate/src_upstreams.go index 791df1b..d35711c 100644 --- a/cmd/generate/src_upstreams.go +++ b/cmd/generate/src_upstreams.go @@ -6,6 +6,7 @@ import ( "net/url" "os" "path" + "strings" "sigs.k8s.io/yaml" ) @@ -41,7 +42,7 @@ func (upstream *Upstream) Fill() error { if err != nil { return err } - _, upstream.Name = path.Split(path.Clean(u.Path)) + _, upstream.Name = strings.TrimSuffix(path.Split(path.Clean(u.Path)), ".git") } return nil } diff --git a/upstreams.yml b/upstreams.yml index ee9c5cf..7dc0d70 100644 --- a/upstreams.yml +++ b/upstreams.yml @@ -23,7 +23,7 @@ - urls: [https://github.com/diamondburned/gotk4] desc: | gotk4 is a project that burries the lede: yes, it is a set of Go - bindings to GTK 4.0. But (IMO) more interestingly, + bindings to GTK4. But (IMO) more interestingly, `./gir/cmd/gir-generate` is a tool for generating Go bindings to GObject Introspection (GI) libraries from the `.gir` files describing the library. -- cgit v1.2.3-54-g00ecf