You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/artifacts-helper/README.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,14 +77,14 @@ to download the package.
77
77
78
78
The shim scripts (e.g., `dotnet`, `npm`, `nuget`) now include a wait mechanism for the Azure DevOps authentication helper. When invoked, these scripts will:
79
79
80
-
1. Wait up to 3 minutes for the `ado-auth-helper` to become available
80
+
1. Wait up to 3 minutes for the `ado-auth-helper` to become available (configurable via `MAX_WAIT` environment variable)
81
81
2. Display progress indicators every 20 seconds while waiting
82
82
3. Continue execution once authentication is successful
83
-
4.Return an error (but not terminate dependent scripts) if the helper is not available after the timeout
83
+
4.**Continue with the underlying command even if authentication is not available** after the timeout
84
84
85
-
This ensures that package restore operations can proceed even if there's a slight delay in the authentication helper installation, which can occur in some codespace initialization scenarios.
85
+
This ensures that package restore operations can proceed even if there's a slight delay in the authentication helper installation, which can occur in some codespace initialization scenarios. Commands will still execute without authentication, though they may fail to access private Azure Artifacts feeds.
86
86
87
-
The scripts are designed to be sourced safely, meaning they won't terminate the calling shell if authentication fails - they will simply return an error code that can be handled by the calling script.
87
+
The scripts are designed to be sourced safely, meaning they won't terminate the calling shell if authentication fails - they will simply return an error code and allow the underlying tool to execute. This allows you to work with public packages or other package sources even when Azure Artifacts authentication is unavailable.
88
88
89
89
## OS Support
90
90
@@ -102,11 +102,6 @@ devcontainer features test -f artifacts-helper
102
102
devcontainer features test -f artifacts-helper --scenario test_auth_wait
103
103
```
104
104
105
-
The test suite includes:
106
-
-**test_auth_wait.sh**: Verifies that auth-ado.sh can be sourced without terminating the shell
107
-
-**test_shim_integration.sh**: Tests that shim scripts properly handle missing authentication helper
By default, the functions are defined in `/etc/bash.bashrc` and `/etc/zsh/zshrc` if the container user is `root`, otherwise `~/.bashrc` and `~/.zshrc`.
0 commit comments