From 41d23c22df853b0bdf35e2d0988c8d4c4281d42f Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sun, 19 Jun 2022 13:31:49 +0100 Subject: Move redirection logic to a separate package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also, add an optional ‘-c’ flag to pass the path to a configuration file that can be used to specify several matching patterns and replacements. --- archlinux/go-import-redirect.conf | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 archlinux/go-import-redirect.conf (limited to 'archlinux/go-import-redirect.conf') diff --git a/archlinux/go-import-redirect.conf b/archlinux/go-import-redirect.conf new file mode 100644 index 0000000..6bb195a --- /dev/null +++ b/archlinux/go-import-redirect.conf @@ -0,0 +1,5 @@ +[{ + "pattern": "go\\.example\\.com/(.+)", + "replacement": "https://git.example.com/$1", + "vcs": "git" +}] -- cgit v1.2.3-70-g09d2