Skip to content

Commit 0efcf23

Browse files
Matthew Weberpuredanger
authored andcommitted
TDEPS-273 Add Codeberg git auto urls
1 parent 448b812 commit 0efcf23

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

  • src
    • main/clojure/clojure/tools/deps/extensions
    • test/clojure/clojure/tools/deps/extensions

src/main/clojure/clojure/tools/deps/extensions/git.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
(def ^:private git-services
1717
{:github {:service #"^(?:com|io).github.([^.]+)$" :url "https://github.com/%s/%s.git"}
1818
:gitlab {:service #"^(?:com|io).gitlab.([^.]+)$" :url "https://gitlab.com/%s/%s.git"}
19+
:codeberg {:service #"^(?:org|page).codeberg.([^.]+)$" :url "https://codeberg.org/%s/%s.git"}
1920
:bitbucket {:service #"^(?:org|io).bitbucket.([^.]+)$" :url "https://bitbucket.org/%s/%s.git"}
2021
:beanstalk {:service #"^(?:com|io).beanstalkapp.([^.]+)$" :url "https://%s.git.beanstalkapp.com/%s.git"}
2122
:sourcehut {:service #"^ht.sr.([^.]+)$" :url "https://git.sr.ht/~%s/%s"}})

src/test/clojure/clojure/tools/deps/extensions/test_git.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"https://gitlab.com/clojure/tools.deps.git" 'com.gitlab.clojure/tools.deps
2323
"https://bitbucket.org/clojure/tools.deps.git" 'io.bitbucket.clojure/tools.deps
2424
"https://bitbucket.org/clojure/tools.deps.git" 'org.bitbucket.clojure/tools.deps
25+
"https://codeberg.org/foo/bar.git" 'org.codeberg.foo/bar
2526
"https://git.sr.ht/~foo/bar" 'ht.sr.foo/bar))
2627

2728
(deftest full-sha

0 commit comments

Comments
 (0)