From 1316621b479900c971225560de52c7c829bc8d19 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 6 Aug 2024 03:18:52 -0400 Subject: sbolint: *really* stop complaining about refs/tags in github URLs. --- sbolint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbolint b/sbolint index ad1720a..d23d054 100755 --- a/sbolint +++ b/sbolint @@ -1232,7 +1232,6 @@ sub curl_head_request { sub check_github_url { my $file = shift; my $url = shift; - my $old_url = $url; my $new_url; my $ext; my $tag; @@ -1242,6 +1241,7 @@ sub check_github_url { # do not police releases/ or raw/ URLs, only archive/ return unless $url =~ m{github\.com/[^/]*/[^/]*/archive/}; + # allow *and ignore* refs/tags $url =~ s,refs/tags/,,; #https: // site/ .../ .../ archive/ ...everything else. @@ -1294,7 +1294,7 @@ sub check_github_url { $new_url = "https://github.com/$user/$proj/archive/$dir/$proj-$ver$ext"; - if($old_url ne $new_url) { + if($url ne $new_url) { log_warning("$file: canonical github URL should be: $new_url"); } } -- cgit v1.2.3