fetch2: Adds vscode devcontainer support
PATCH v2 1/1 fetch2: 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.
v2: Added signed-off
---
lib/bb/fetch2/__init__.py | 1 +
1 file changed, 1 insertion(+)
lib/bb/fetch2/__init__.py +0 -0
@@ -874,6 +874,7 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH',
'AWS_SECRET_ACCESS_KEY',
'AWS_DEFAULT_REGION',
'GIT_CACHE_PATH',
+ 'REMOTE_CONTAINERS_IPC',
'SSL_CERT_DIR']
def get_fetcher_environment(d):
Signature · 1 line
2.42.0
Quoted 10 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Matthias Schnelte
Sent: den 17 september 2023 14:31
To: [email protected]
Subject: [bitbake-devel] [PATCH v2] fetch2: Adds vscode devcontainer supportVisual 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.
Quoted 5 lines
In order for this helper to work the
REMOTE_CONTAINERS_IPCneeds to be available in the environment for all git operations that require authentication.v2: Added signed-off
Patch set change information belongs below the --- line below. Otherwise it will be part of the actual commit, which normally does not make any sense.
Quoted 19 lines
Signed-off-by Matthias Schnelte <[email protected]>--- lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+)lib/bb/fetch2/__init__.py +1
-1@@ -874,6 +874,7 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH', 'AWS_SECRET_ACCESS_KEY', 'AWS_DEFAULT_REGION', 'GIT_CACHE_PATH', + 'REMOTE_CONTAINERS_IPC', 'SSL_CERT_DIR'] def get_fetcher_environment(d): --
Quoted 1 line
2.42.0
//Peter