Skip to content

Commit b9d040a

Browse files
Copilotg3force
andcommitted
Improve setup script with better error handling and PATH persistence
Co-authored-by: g3force <779094+g3force@users.noreply.github.com>
1 parent cd5a641 commit b9d040a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/copilot/setup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ echo "Setting up Copilot development environment..."
66
# Install uv (version matching GitHub Actions)
77
echo "Installing uv..."
88
curl -LsSf https://astral.sh/uv/0.10.2/install.sh | sh
9+
10+
# Source uv environment to make it available in the current shell
11+
if [ -f "$HOME/.local/bin/env" ]; then
12+
. "$HOME/.local/bin/env"
13+
fi
914
export PATH="$HOME/.local/bin:$PATH"
1015

1116
# Verify uv installation
12-
uv --version
17+
echo "Verifying uv installation..."
18+
if ! uv --version; then
19+
echo "ERROR: uv installation failed or uv is not in PATH"
20+
exit 1
21+
fi
1322

1423
# Install Python and dependencies
1524
echo "Installing dependencies..."

0 commit comments

Comments
 (0)