From 0500bb538807152cc2a1f4fdefc25fe736ac73ac Mon Sep 17 00:00:00 2001 From: Samuel Reina Date: Fri, 27 Feb 2026 15:54:33 +0100 Subject: [PATCH 1/4] Fix tokens removal command only removing the root level tokens and not all --- commands/host/1x-token-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/host/1x-token-setup b/commands/host/1x-token-setup index 2b0e8e5..2f10b90 100644 --- a/commands/host/1x-token-setup +++ b/commands/host/1x-token-setup @@ -76,7 +76,7 @@ fi # Setup token for NPM # Remove old token if exists to replace with new one, or just append # A simple append might create duplicates, so let's try to be a bit smarter or just append as requested -sed_compat -i '/\/\/git.1xinternet.de\/:_authToken=/d' ~/.npmrc +sed_compat -i '/\/\/git.1xinternet.de\/.*:_authToken=/d' ~/.npmrc echo "//git.1xinternet.de/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> ~/.ddev/homeadditions/.npmrc # Configure NPM in homeadditions so the container picks it up. From 97669a1528f17ea71200945056b5e3b691518bf4 Mon Sep 17 00:00:00 2001 From: Samuel Reina Date: Fri, 27 Feb 2026 15:58:34 +0100 Subject: [PATCH 2/4] Write the new auth token to ~/.npmrc instead of homeadditions --- commands/host/1x-token-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/host/1x-token-setup b/commands/host/1x-token-setup index 2f10b90..9fb040a 100644 --- a/commands/host/1x-token-setup +++ b/commands/host/1x-token-setup @@ -77,7 +77,7 @@ fi # Remove old token if exists to replace with new one, or just append # A simple append might create duplicates, so let's try to be a bit smarter or just append as requested sed_compat -i '/\/\/git.1xinternet.de\/.*:_authToken=/d' ~/.npmrc -echo "//git.1xinternet.de/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> ~/.ddev/homeadditions/.npmrc +echo "//git.1xinternet.de/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> ~/.npmrc # Configure NPM in homeadditions so the container picks it up. # We append if not already present to avoid duplication From 3840ce31591ff923c0b13efa64ed01d412fe1a56 Mon Sep 17 00:00:00 2001 From: Samuel Reina Date: Fri, 27 Feb 2026 16:01:48 +0100 Subject: [PATCH 3/4] Fix for 1xinternet registry guard checking groups instead of project --- commands/host/1x-token-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/host/1x-token-setup b/commands/host/1x-token-setup index 9fb040a..8803834 100644 --- a/commands/host/1x-token-setup +++ b/commands/host/1x-token-setup @@ -87,7 +87,7 @@ fi # Configure NPM in homeadditions so the container picks it up. # We append if not already present to avoid duplication -if ! grep -q "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/group/1121/-/packages/npm/" ~/.ddev/homeadditions/.npmrc; then +if ! grep -q "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/projects/1121/packages/npm/" ~/.ddev/homeadditions/.npmrc; then echo "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/projects/1121/packages/npm/" >> ~/.ddev/homeadditions/.npmrc fi From 4d1a3885aefeed7e84fdcf7726af015b2378d5de Mon Sep 17 00:00:00 2001 From: Samuel Reina Date: Fri, 27 Feb 2026 16:03:30 +0100 Subject: [PATCH 4/4] Write all npmrc entries to ~/.npmrc instead of homeadditions --- commands/host/1x-token-setup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/host/1x-token-setup b/commands/host/1x-token-setup index 8803834..08f3337 100644 --- a/commands/host/1x-token-setup +++ b/commands/host/1x-token-setup @@ -81,14 +81,14 @@ echo "//git.1xinternet.de/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> ~/.npmrc # Configure NPM in homeadditions so the container picks it up. # We append if not already present to avoid duplication -if ! grep -q "@dxp:registry=https://git.1xinternet.de/api/v4/groups/392/-/packages/npm/" ~/.ddev/homeadditions/.npmrc; then - echo "@dxp:registry=https://git.1xinternet.de/api/v4/groups/392/-/packages/npm/" >> ~/.ddev/homeadditions/.npmrc +if ! grep -q "@dxp:registry=https://git.1xinternet.de/api/v4/groups/392/-/packages/npm/" ~/.npmrc; then + echo "@dxp:registry=https://git.1xinternet.de/api/v4/groups/392/-/packages/npm/" >> ~/.npmrc fi # Configure NPM in homeadditions so the container picks it up. # We append if not already present to avoid duplication -if ! grep -q "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/projects/1121/packages/npm/" ~/.ddev/homeadditions/.npmrc; then - echo "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/projects/1121/packages/npm/" >> ~/.ddev/homeadditions/.npmrc +if ! grep -q "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/projects/1121/packages/npm/" ~/.npmrc; then + echo "@1xINTERNET:registry=https://git.1xinternet.de/api/v4/projects/1121/packages/npm/" >> ~/.npmrc fi # Start the DDEV project (so containers run).