From 42526a402357e04794f4cb6f21ac18f562220a9b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 2 Nov 2021 12:42:38 +0000 Subject: fetch/git: Show warning for invalid github urls On master, tell the users they need to update their urls for github. Signed-off-by: Richard Purdie --- lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/bb/fetch2/git.py') diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 462c4d082..30da8e95b 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -146,6 +146,7 @@ class Git(FetchMethod): # github stopped supporting git protocol # https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git ud.proto = "https" + bb.warn("URL: %s uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url." % ud.url) if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): raise bb.fetch2.ParameterError("Invalid protocol type", ud.url) -- cgit 1.2.3-korg