fetch/git: Show warning for invalid github urls
PATCH v2 1/1 fetch/git: Show warning for invalid github urls
On master, tell the users they need to update their urls for github.
--- lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+)
[v2 - add missing ud.url)
lib/bb/fetch2/git.py +1 -0
@@ -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)
Signature · 1 line
2.32.0
I feel like this may need to become an FAQ as it will affect older releases no longer supported.
did I just volunteer?
-armin
Quoted 30 lines · Richard Purdie
On master, tell the users they need to update their urls for github.
Signed-off-by Richard Purdie <[email protected]>--- lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+)[v2 - add missing ud.url)
lib/bb/fetch2/git.py +1
-1@@ -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) -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#12868): https://lists.openembedded.org/g/bitbake-devel/message/12868
Mute This Topic: https://lists.openembedded.org/mt/86771319/3616698
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines · On Tue, 2021-11-02 at 16:07 -0700, akuster808 wrote:
I feel like this may need to become an FAQ as it will affect older releases no longer supported.
did I just volunteer?
Yes, thanks! :)
Cheers,
Richard