diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-02 12:42:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-03 10:12:42 +0000 |
commit | 5fb6b453f633796f28e230420e17b644adde8b11 (patch) | |
tree | 8e1ad9461cf4535a5582f4d22ad09a1dc1efa0e9 /bitbake | |
parent | 489fe8ff39fe0e68d8aeaa319a1e5ffaa65d7c84 (diff) | |
download | poky-5fb6b453f633796f28e230420e17b644adde8b11.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): | |||
146 | # github stopped supporting git protocol | 146 | # github stopped supporting git protocol |
147 | # https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git | 147 | # https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git |
148 | ud.proto = "https" | 148 | ud.proto = "https" |
149 | bb.warn("URL: %s uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url." % ud.url) | ||
149 | 150 | ||
150 | if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): | 151 | if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): |
151 | raise bb.fetch2.ParameterError("Invalid protocol type", ud.url) | 152 | raise bb.fetch2.ParameterError("Invalid protocol type", ud.url) |