Skip to content

Commit

Permalink
cmd/ursrv: Anchor distribution expressions to avoid mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Nov 15, 2023
1 parent 5c65a1b commit 7ba39c9
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions cmd/ursrv/serve/serve.go
Expand Up @@ -53,26 +53,26 @@ var (
// Maps well known builders to the official distribution method that
// they represent

{regexp.MustCompile(`teamcity@build\.syncthing\.net`), "GitHub"},
{regexp.MustCompile(`jenkins@build\.syncthing\.net`), "GitHub"},
{regexp.MustCompile(`builder@github\.syncthing\.net`), "GitHub"},

{regexp.MustCompile(`deb@build\.syncthing\.net`), "APT"},
{regexp.MustCompile(`debian@github\.syncthing\.net`), "APT"},

{regexp.MustCompile(`docker@syncthing\.net`), "Docker Hub"},
{regexp.MustCompile(`docker@build.syncthing\.net`), "Docker Hub"},
{regexp.MustCompile(`docker@github.syncthing\.net`), "Docker Hub"},

{regexp.MustCompile(`android-builder@github\.syncthing\.net`), "Google Play"},
{regexp.MustCompile(`android-.*teamcity@build\.syncthing\.net`), "Google Play"},
{regexp.MustCompile(`android-.*vagrant@basebox-stretch64`), "F-Droid"},
{regexp.MustCompile(`vagrant@bullseye`), "F-Droid"},
{regexp.MustCompile(`builduser@(archlinux|svetlemodry)`), "Arch (3rd party)"},
{regexp.MustCompile(`\bteamcity@build\.syncthing\.net`), "GitHub"},
{regexp.MustCompile(`\bjenkins@build\.syncthing\.net`), "GitHub"},
{regexp.MustCompile(`\bbuilder@github\.syncthing\.net`), "GitHub"},

{regexp.MustCompile(`\bdeb@build\.syncthing\.net`), "APT"},
{regexp.MustCompile(`\bdebian@github\.syncthing\.net`), "APT"},

{regexp.MustCompile(`\bdocker@syncthing\.net`), "Docker Hub"},
{regexp.MustCompile(`\bdocker@build.syncthing\.net`), "Docker Hub"},
{regexp.MustCompile(`\bdocker@github.syncthing\.net`), "Docker Hub"},

{regexp.MustCompile(`\bandroid-builder@github\.syncthing\.net`), "Google Play"},
{regexp.MustCompile(`\bandroid-.*teamcity@build\.syncthing\.net`), "Google Play"},
{regexp.MustCompile(`\bandroid-.*vagrant@basebox-stretch64`), "F-Droid"},
{regexp.MustCompile(`\bvagrant@bullseye`), "F-Droid"},
{regexp.MustCompile(`\bbuilduser@(archlinux|svetlemodry)`), "Arch (3rd party)"},
{regexp.MustCompile(`@debian`), "Debian (3rd party)"},
{regexp.MustCompile(`@fedora`), "Fedora (3rd party)"},
{regexp.MustCompile(`\bbrew@`), "Homebrew (3rd party)"},
{regexp.MustCompile(`root@buildkitsandbox`), "LinuxServer.io (3rd party)"},
{regexp.MustCompile(`\broot@buildkitsandbox`), "LinuxServer.io (3rd party)"},
{regexp.MustCompile(`.`), "Others"},
}
)
Expand Down

0 comments on commit 7ba39c9

Please sign in to comment.