Adds vscode devcontainer support
PATCH 1/1 Adds vscode devcontainer support
Visual studio code is injecting a git credential helper
into every dev container. This helper is forwarding the git credentials from the host into the container.
In order for this helper to work the REMOTE_CONTAINERS_IPC needs to be available in the environment for all git operations that require authentication.
---
lib/bb/fetch2/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/fetch2/__init__.py +0 -0
@@ -874,7 +874,8 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH',
'AWS_SECRET_ACCESS_KEY',
'AWS_DEFAULT_REGION',
'GIT_CACHE_PATH',
- 'SSL_CERT_DIR']
+ 'SSL_CERT_DIR',
+ 'REMOTE_CONTAINERS_IPC']
def get_fetcher_environment(d):
newenv = {}
Signature · 1 line
2.34.1
Quoted 16 lines · Matthias Schnelte
Visual studio code is injecting a git credential helper
into every dev container. This helper is forwarding the git credentials from the host into the container.In order for this helper to work the
REMOTE_CONTAINERS_IPCneeds to be available in the environment for all git operations that require authentication.--- lib/bb/fetch2/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/bb/fetch2/__init__.py +0
-0
lib/bb/fetch2/__init__.py FETCH_EXPORT_VARS = ['HOME', 'PATH', · line 881
Quoted 9 lines
lib/bb/fetch2/__init__.py +2
-1@@ -874,7 +874,8 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH', 'AWS_SECRET_ACCESS_KEY', 'AWS_DEFAULT_REGION', 'GIT_CACHE_PATH', - 'SSL_CERT_DIR'] + 'SSL_CERT_DIR', + 'REMOTE_CONTAINERS_IPC'] def get_fetcher_environment(d): newenv = {}
This patch is missing a Signed-off-by line and the patch itself is also has damaged whitespace (note the multiple spaces in front of def get_fetcher_environment) so can't be applied unfortunately.
Cheers,
Richard