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
Have devcontainer.json with an "initializeCommand" using the property's array syntax (first element is the command or script, remaining elements are parameters to it) to run a script in the workspace. The path to the script should use slashes (not backslashes) to be portable and there should be a file with that exact name and the executable bit set for Linux/MacOS and a file with that name and .cmd or .bat as extension for Windows. This setup should be the same independent of the OS you test on.
Fixes#4325
Add platform-specific initialization scripts for dev container.
* **Add `initialize.sh` script**: Create directories `.azure` and `.config` in the user's home directory using Bash.
* **Add `initialize.cmd` script**: Create directories `.azure` and `.config` in the user's profile directory using Windows command line.
* **Update `initializeCommand` in `devcontainer.json`**: Use array syntax to reference the new platform-specific initialization scripts.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/AzureTRE/issues/4325?shareId=XXXX-XXXX-XXXX-XXXX).
getting the following after pulling this change:
It appears to be trying to run initializeCommand on the Windows command line, rather than Bash.
Originally posted by @jonnyry in #4290 (comment)
The text was updated successfully, but these errors were encountered: