github / github/copilot-cli

Installing GitHub Copilot CLI from scratch results in v1.0.5

Đang mở
#2,260 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:installation
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

Installing copilot CLI from scratch results in only getting v1.0.5, not the latest version.

This is an issue, since I have a docker image specifically for Copilot. Every time copilot is run, a new container is created. That means every time I run copilot, I need to update.

### Affected version

latest

### Steps to reproduce the behavior

1. Create a new docker image containing copilot cli, using the following dockerfile:
```
# Use a slim Node.js base image, which gives us `npm`.
FROM node:22-slim

# Set non-interactive frontend to avoid prompts during package installation.
ENV DEBIAN_FRONTEND=noninteractive

# Install git, curl, gpg, and gosu for the entrypoint script.
RUN apt-get update && apt-get install -y \
curl \
gpg \
git \
gosu \
&& rm -rf /var/lib/apt/lists/*

# Install the standalone GitHub Copilot CLI via npm.
RUN curl -fsSL https://gh.io/copilot-install | bash

# Set the working directory for the container.
WORKDIR /work

# The default command to run if none is provided.
CMD [ "copilot", "--banner" ]
```
3. Start the image.
4. Observe that the version is 1.0.5

### Expected behavior

The copilot version after image creation will be the latest.

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.