Skip to contentSkip to conversation

Adds vscode devcontainer support

PATCH Superseded Matthias Schnelte 2 participants 2 messages Sep 11, 2023 – Sep 13, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 765aedd5..552a0939 100644
@@ -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
#1 lore raw
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_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
index 765aedd5..552a0939 100644

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