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 183ed06
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions cmd/ursrv/serve/serve.go
Expand Up @@ -53,22 +53,22 @@ 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(`^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(`@debian`), "Debian (3rd party)"},
{regexp.MustCompile(`@fedora`), "Fedora (3rd party)"},
{regexp.MustCompile(`\bbrew@`), "Homebrew (3rd party)"},
Expand Down

0 comments on commit 183ed06

Please sign in to comment.