summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/generate/src_upstreams.go3
-rw-r--r--upstreams.yml2
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.