From 28ba67829730a95ca8c5ecf911a459ebcff306ae Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Mon, 22 Apr 2024 23:33:09 +0100 Subject: [PATCH] Some github links succeeded because they also linked to the more popular project --- README.md | 8 -------- src/main.rs | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 4b6e2f4..6485105 100644 --- a/README.md +++ b/README.md @@ -1039,8 +1039,6 @@ See also [About Rust’s Machine Learning Community](https://medium.com/@autumn_ * [sstadick/gzp](https://github.com/sstadick/gzp/) - multi-threaded encoding and decoding of deflate formats and snappy * miniz * [rust-lang/flate2-rs](https://github.com/rust-lang/flate2-rs) — [miniz](https://code.google.com/archive/p/miniz) bindings [![build badge](https://github.com/rust-lang/flate2-rs/workflows/CI/badge.svg?branch=master)](https://github.com/rust-lang/flate2-rs/actions) -* snappy - * [JeffBelgum/rust-snappy](https://github.com/JeffBelgum/rust-snappy) — [snappy](https://github.com/google/snappy) bindings * tar * [alexcrichton/tar-rs](https://github.com/alexcrichton/tar-rs) — tar archive reading/writing * zip @@ -1182,8 +1180,6 @@ See also [About Rust’s Machine Learning Community](https://medium.com/@autumn_ * [elastic-rs/elastic](https://github.com/elastic-rs/elastic) [[elastic](https://crates.io/crates/elastic)] — elastic is an efficient, modular API client for Elasticsearch written in Rust [![build badge](https://ci.appveyor.com/api/projects/status/csa78tcumdpnbur2?svg=true)](https://ci.appveyor.com/project/KodrAus/elastic) * etcd * [jimmycuadra/rust-etcd](https://github.com/jimmycuadra/rust-etcd) [[etcd](https://crates.io/crates/etcd)] — A client library for CoreOS's etcd. - * ForestDB - * [vhbit/sherwood](https://github.com/vhbit/sherwood) — [ForestDB](https://github.com/couchbase/forestdb) bindings * [InfluxDB](https://www.influxdata.com/) * [driftluo/InfluxDBClient-rs](https://github.com/driftluo/InfluxDBClient-rs) — Synchronization interface * LevelDB @@ -1256,8 +1252,6 @@ See also [About Rust’s Machine Learning Community](https://medium.com/@autumn_ * [fede1024/rust-rdkafka](https://github.com/fede1024/rust-rdkafka) [[rdkafka](https://crates.io/crates/rdkafka)] — [librdkafka](https://github.com/confluentinc/librdkafka) bindings * [gklijs/schema_registry_converter](https://github.com/gklijs/schema_registry_converter) [[schema_registry_converter](https://crates.io/crates/schema_registry_converter)] — to integrate with [confluent schema registry](https://www.confluent.io/product/confluent-platform/data-compatibility/) * [kafka-rust/kafka-rust](https://github.com/kafka-rust/kafka-rust) — -* Beanstalkd - * [schickling/rust-beanstalkd](https://github.com/schickling/rust-beanstalkd) — [Beanstalkd](https://github.com/beanstalkd/beanstalkd) bindings * HDFS * [hyunsik/hdfs-rs](https://github.com/hyunsik/hdfs-rs) [[hdfs](https://crates.io/crates/hdfs)] — libhdfs bindings * Other @@ -1397,8 +1391,6 @@ See also [Are we game yet?](https://arewegameyet.rs) * [bracket-lib](https://github.com/amethyst/bracket-lib) [[bracket-lib](https://crates.io/crates/bracket-lib)] - The Roguelike Toolkit (RLTK). [![Rust](https://github.com/amethyst/bracket-lib/actions/workflows/rust.yml/badge.svg)](https://github.com/amethyst/bracket-lib/actions/workflows/rust.yml) * Challonge * [iddm/challonge-rs](https://github.com/iddm/challonge-rs) [[challonge](https://crates.io/crates/challonge)] — Client library for the Challonge REST API. Helps to organize tournaments. [![CI](https://github.com/iddm/challonge-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/iddm/challonge-rs/actions/workflows/ci.yml) -* Corange - * [lucidscape/corange-rs](https://github.com/lucidscape/corange-rs) — [Corange](https://github.com/orangeduck/Corange) bindings * Entity-Component Systems (ECS) * [amethyst/specs](https://github.com/amethyst/specs) — Specs Parallel ECS * [legion](https://github.com/amethyst/legion) — A feature rich high performance ECS library with minimal boilerplate [![build badge](https://github.com/amethyst/legion/workflows/CI/badge.svg?branch=master)](https://github.com/amethyst/legion/actions) diff --git a/src/main.rs b/src/main.rs index b642726..ab2d6a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -462,7 +462,7 @@ async fn main() -> Result<(), Error> { let new_url = url.to_string(); if POPULARITY_OVERRIDES.contains(&new_url) { github_stars = Some(MINIMUM_GITHUB_STARS); - } else if GITHUB_REPO_REGEX.is_match(&url) { + } else if GITHUB_REPO_REGEX.is_match(&url) && github_stars.is_none() { let github_url = GITHUB_REPO_REGEX .replace_all(&url, "https://github.com/$org/$repo") .to_string();