Skip to contentSkip to conversation

fetch2: Adds vscode devcontainer support

PATCH In review Matthias Schnelte 2 participants 2 messages Sep 17, 2023 – Sep 18, 2023

lore
Share & tools
lore
#0 lore raw

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

Quoted 5 lines

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

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
---
  lib/bb/fetch2/__init__.py | 1 +
  1 file changed, 1 insertion(+)
lib/bb/fetch2/__init__.py +1 -1
index 765aedd5..ffb1a92b 100644
@@ -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