aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-08-06 03:18:52 -0400
committerB. Watson <urchlay@slackware.uk>2024-08-06 03:18:52 -0400
commit1316621b479900c971225560de52c7c829bc8d19 (patch)
treec9e18b014baac8511e1e3ec4f57e4b1ffa5237f9
parent65e04bb1c01066a1b8986399c14d3a398c786ab7 (diff)
downloadsbo-maintainer-tools-1316621b479900c971225560de52c7c829bc8d19.tar.gz
sbolint: *really* stop complaining about refs/tags in github URLs.
-rwxr-xr-xsbolint4
1 files 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");
}
}