Closed smanders closed 2 years ago
after switching the protocol from git://
to https://
in the projects/*.cmake
files of externpro and running make
(with XP_STEP=mkpatch
...
Cloning into 'wxx_repo'...
Switched to a new branch 'xpro'
Branch 'xpro' set up to track remote branch 'xpro' from 'origin'.
Submodule 'wxTLC' (git://github.com/smanders/wxTLC) registered for path 'wxTLC'
Submodule 'wxplotctrl' (git://github.com/smanders/wxplotctrl.git) registered for path 'wxplotctrl'
Submodule 'wxthings' (git://github.com/smanders/wxthings.git) registered for path 'wxthings'
Cloning into '/bpvol/externpro/_bldrepo/xpbase/Source/wxx_repo/wxTLC'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
fatal: clone of 'git://github.com/smanders/wxTLC' into submodule path '/bpvol/externpro/_bldrepo/xpbase/Source/wxx_repo/wxTLC' failed
Failed to clone 'wxTLC'. Retry scheduled
Cloning into '/bpvol/externpro/_bldrepo/xpbase/Source/wxx_repo/wxplotctrl'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
fatal: clone of 'git://github.com/smanders/wxplotctrl.git' into submodule path '/bpvol/externpro/_bldrepo/xpbase/Source/wxx_repo/wxplotctrl' failed
Failed to clone 'wxplotctrl'. Retry scheduled
Cloning into '/bpvol/externpro/_bldrepo/xpbase/Source/wxx_repo/wxthings'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
fatal: clone of 'git://github.com/smanders/wxthings.git' into submodule path '/bpvol/externpro/_bldrepo/xpbase/Source/wxx_repo/wxthings' failed
Failed to clone 'wxthings'. Retry scheduled
projects like wxx which have submodules will need to have an updated .gitmodules
file, switching the protocol there from git://
to https://
when trying to push the change (to the .gitmodules
file) to the wxx repo, where the origin is now using https://
protocol
smanders@bluepill:~/src/externpro/_bldrepo/xpbase/Source/wxx_repo$ git push smanders xpro
Username for 'https://github.com': smanders
Password for 'https://smanders@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/smanders/wxx.git/'
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
For developers, if you are using a password to authenticate Git operations with GitHub.com today, you must begin using a personal access token over HTTPS (recommended)
it's a rabbit hole... you can also "use GitHub CLI to authenticate GitHub on the command line and skip generating a personal access token and authenticate via the web browser instead." https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git
I've decided to use https://
like I was using the read-only git://
... and if I need to push a change I set up another remote using the git@github.com
protocol
.gitmodule changes can't be in the patches! the build fails with these changes because it's trying to patch a file that doesn't exist at build time when we don't use git repos and build from source tarballs/zip files
for example
[ 7%] Performing patch step for 'wxx'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/.gitmodules b/.gitmodules
|index 8eb6dba..fa94cc1 100644
|--- a/.gitmodules
|+++ b/.gitmodules
--------------------------
completed with commits referenced above
verified
patches/
directory can be re-built
rm -rf patches/*
mkdir _bldpatch
cd _bldpatch
cmake -DXP_STEP=mkpatch ..
make -j4 -k
git status
all of the patches/*.patch
files have been restored (and no diffs)
-DXP_STEP=build
) of externpro is successful
with
XP_STEP=mkpatch
allgit fetch
commands failfrom https://github.blog/2021-09-01-improving-git-protocol-security-github/
...