From 5fb6b453f633796f28e230420e17b644adde8b11 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 2 Nov 2021 12:42:38 +0000 Subject: bitbake: fetch/git: Show warning for invalid github urls On master, tell the users they need to update their urls for github. (Bitbake rev: 42526a402357e04794f4cb6f21ac18f562220a9b) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 462c4d0820..30da8e95b7 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/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 v1.2.3-54-g00ecf