Closed MartinDelille closed 6 months ago
@MartinDelille : thank you for opening this issue and my apologies for any frustration this might have caused! 🙇 🤔 Let's see how we might troubleshoot why the GitHub CLI is having issues downloading release assets.
Could you capture and share the output from the following commands?
gh release view v1.0.0 -R github/gh-copilot
This is a test to see if your installation can read public release information related to the extension, which should look like:
v1.0.0
gh-copilot-promote-release[bot] released this about 22 hours ago
Release notes for v1.0.0
Following our public beta https://github.blog/changelog/2023-11-08-github-copilot-in-the-cli-now-in-public-beta/, we're excited
to announce the general availability of GitHub Copilot in the CLI! 🎉
Bringing GitHub Copilot to your terminal, GitHub Copilot in the CLI assists with any task in the terminal:
• Suggest commands using natural language for unfamiliar or hard to remember use cases.
• Explain commands with finer details of arguments, flags, and expected outcomes.
• Execute suggested commands in supported shells to stay in the flow.
gh release download v1.0.0 -p darwin-arm64 -R github/gh-copilot
This is a test to see if your installation can download public release assets related to the extension, which should result in darwin-arm64
file in the directory invoked from:
$ gh release download v1.0.0 -p darwin-arm64 -R github/gh-copilot -O gh-copilot
$ ll
total 64448
-rw-r--r-- 1 andyfeller staff 31M Mar 22 08:51 gh-copilot
$ chmod 755 gh-copilot
$ ./gh-copilot --help
Your AI command line copilot.
Usage:
copilot [command]
Examples:
$ gh copilot suggest "Install git"
$ gh copilot explain "traceroute github.com"
Available Commands:
alias Generate shell-specific aliases for convenience
config Configure options
explain Explain a command
suggest Suggest a command
Flags:
-h, --help help for copilot
-v, --version version for copilot
Use "copilot [command] --help" for more information about a command.
GH_DEBUG=api gh ext install github/gh-copilot
This generates additional information around the GitHub API calls with any sensitive information obscured. This is an attempt to see where specifically this is failing.
I'll share an example of what this looks like in a <details>
block at the bottom of this comment as it is somewhat extra. Let me repeat that this should be safe to share.
wget https://github.com/github/gh-copilot/releases/download/v1.0.0/darwin-arm64
This attempts to download the release asset directly via HTTP url. If this is an issue with gh
, then this should confirm if there are network or other issues on your workstation.
Troubleshooting with GitHub Debug
All of the previous commands are attempting to get more information about where this is failing, however your problem might purely be network based. This resource is tool built with ❤ from GitHub network engineers to help users see if there are connectivity issues.
GH_DEBUG=api gh ext install github/gh-copilot
```shell
* Request at 2024-03-22 08:56:30.411909 -0400 EDT m=+0.069764168
* Request to https://api.github.com/repos/github/gh-copilot/releases/latest
> GET /repos/github/gh-copilot/releases/latest HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Type: application/json; charset=utf-8
> Time-Zone: America/New_York
> User-Agent: GitHub CLI 2.45.0
> X-Gh-Cache-Ttl: 30s
⣻< HTTP/2.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Cache-Control: private, max-age=60, s-maxage=60
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Fri, 22 Mar 2024 12:56:30 GMT
< Etag: W/"54c3a3ab35007b895e730443a1bd0f176d87977771787660f6f6d663287c379f"
< Last-Modified: Thu, 21 Mar 2024 14:05:16 GMT
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: GitHub.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept, Authorization, Cookie, X-GitHub-OTP
< Vary: Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: repo
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.merge-info-preview; param=nebula-preview; format=json
< X-Github-Request-Id: ED83:024D:15388BF:25FF584:65FD7FFE
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: gist, read:org, repo, workflow
< X-Ratelimit-Limit: 15000
< X-Ratelimit-Remaining: 14991
< X-Ratelimit-Reset: 1711114438
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 9
< X-Xss-Protection: 0
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/147734229",
"assets_url": "https://api.github.com/repos/github/gh-copilot/releases/147734229/assets",
"upload_url": "https://uploads.github.com/repos/github/gh-copilot/releases/147734229/assets{?name,label}",
"html_url": "https://github.com/github/gh-copilot/releases/tag/v1.0.0",
"id": 147734229,
"author": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"node_id": "RE_kwDOKlZ9tM4Izj7V",
"tag_name": "v1.0.0",
"target_commitish": "main",
"name": "v1.0.0",
"draft": false,
"prerelease": false,
"created_at": "2023-11-08T18:07:44Z",
"published_at": "2024-03-21T14:04:16Z",
"assets": [
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884708",
"id": 157884708,
"node_id": "RA_kwDOKlZ9tM4JaSEk",
"name": "android-amd64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 33527768,
"download_count": 0,
"created_at": "2024-03-21T14:04:11Z",
"updated_at": "2024-03-21T14:04:13Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/android-amd64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884707",
"id": 157884707,
"node_id": "RA_kwDOKlZ9tM4JaSEj",
"name": "android-arm64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 33423360,
"download_count": 4,
"created_at": "2024-03-21T14:04:11Z",
"updated_at": "2024-03-21T14:04:12Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/android-arm64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884709",
"id": 157884709,
"node_id": "RA_kwDOKlZ9tM4JaSEl",
"name": "darwin-amd64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 32501360,
"download_count": 471,
"created_at": "2024-03-21T14:04:11Z",
"updated_at": "2024-03-21T14:04:13Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/darwin-amd64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884710",
"id": 157884710,
"node_id": "RA_kwDOKlZ9tM4JaSEm",
"name": "darwin-arm64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 32993490,
"download_count": 2325,
"created_at": "2024-03-21T14:04:11Z",
"updated_at": "2024-03-21T14:04:13Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/darwin-arm64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884711",
"id": 157884711,
"node_id": "RA_kwDOKlZ9tM4JaSEn",
"name": "freebsd-386",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 23179264,
"download_count": 0,
"created_at": "2024-03-21T14:04:11Z",
"updated_at": "2024-03-21T14:04:12Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/freebsd-386"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884714",
"id": 157884714,
"node_id": "RA_kwDOKlZ9tM4JaSEq",
"name": "freebsd-amd64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 31440896,
"download_count": 2,
"created_at": "2024-03-21T14:04:12Z",
"updated_at": "2024-03-21T14:04:13Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/freebsd-amd64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884716",
"id": 157884716,
"node_id": "RA_kwDOKlZ9tM4JaSEs",
"name": "freebsd-arm64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 31064064,
"download_count": 0,
"created_at": "2024-03-21T14:04:13Z",
"updated_at": "2024-03-21T14:04:14Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/freebsd-arm64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884718",
"id": 157884718,
"node_id": "RA_kwDOKlZ9tM4JaSEu",
"name": "linux-386",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 23273472,
"download_count": 1,
"created_at": "2024-03-21T14:04:13Z",
"updated_at": "2024-03-21T14:04:14Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/linux-386"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884717",
"id": 157884717,
"node_id": "RA_kwDOKlZ9tM4JaSEt",
"name": "linux-amd64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 31436800,
"download_count": 1109,
"created_at": "2024-03-21T14:04:13Z",
"updated_at": "2024-03-21T14:04:14Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/linux-amd64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884719",
"id": 157884719,
"node_id": "RA_kwDOKlZ9tM4JaSEv",
"name": "linux-arm",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 23855104,
"download_count": 0,
"created_at": "2024-03-21T14:04:13Z",
"updated_at": "2024-03-21T14:04:14Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/linux-arm"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884722",
"id": 157884722,
"node_id": "RA_kwDOKlZ9tM4JaSEy",
"name": "linux-arm64",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 31064064,
"download_count": 11,
"created_at": "2024-03-21T14:04:14Z",
"updated_at": "2024-03-21T14:04:15Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/linux-arm64"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884723",
"id": 157884723,
"node_id": "RA_kwDOKlZ9tM4JaSEz",
"name": "windows-386.exe",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/x-ms-dos-executable",
"state": "uploaded",
"size": 24070656,
"download_count": 17,
"created_at": "2024-03-21T14:04:14Z",
"updated_at": "2024-03-21T14:04:15Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/windows-386.exe"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884724",
"id": 157884724,
"node_id": "RA_kwDOKlZ9tM4JaSE0",
"name": "windows-amd64.exe",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/x-ms-dos-executable",
"state": "uploaded",
"size": 31908864,
"download_count": 914,
"created_at": "2024-03-21T14:04:14Z",
"updated_at": "2024-03-21T14:04:15Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/windows-amd64.exe"
},
{
"url": "https://api.github.com/repos/github/gh-copilot/releases/assets/157884725",
"id": 157884725,
"node_id": "RA_kwDOKlZ9tM4JaSE1",
"name": "windows-arm64.exe",
"label": "",
"uploader": {
"login": "gh-copilot-promote-release[bot]",
"id": 149103791,
"node_id": "BOT_kgDOCOMkrw",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D",
"html_url": "https://github.com/apps/gh-copilot-promote-release",
"followers_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/gh-copilot-promote-release%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
},
"content_type": "application/x-ms-dos-executable",
"state": "uploaded",
"size": 31424512,
"download_count": 2,
"created_at": "2024-03-21T14:04:14Z",
"updated_at": "2024-03-21T14:04:15Z",
"browser_download_url": "https://github.com/github/gh-copilot/releases/download/v1.0.0/windows-arm64.exe"
}
],
"tarball_url": "https://api.github.com/repos/github/gh-copilot/tarball/v1.0.0",
"zipball_url": "https://api.github.com/repos/github/gh-copilot/zipball/v1.0.0",
"body": "# Release notes for v1.0.0\r\n\r\nFollowing our [public beta](https://github.blog/changelog/2023-11-08-github-copilot-in-the-cli-now-in-public-beta/), we're excited to announce the general availability of GitHub Copilot in the CLI! :tada:\r\n\r\nBringing GitHub Copilot to your terminal, GitHub Copilot in the CLI assists with any task in the terminal:\r\n\r\n- Suggest commands using natural language for unfamiliar or hard to remember use cases.\r\n- Explain commands with finer details of arguments, flags, and expected outcomes.\r\n- Execute suggested commands in supported shells to stay in the flow.\r\n\r\n## What's New\r\n\r\n### Introducing support for `ghcs` and `ghce` aliases and executing commands for popular shells\r\n\r\nBefore GitHub Universe, we knew our community would need these two features from the [Copilot for CLI technical preview](https://githubnext.com/projects/copilot-cli/), however your feedback in https://github.com/github/gh-copilot/issues/2 and https://github.com/github/gh-copilot/issues/5 confirmed it!\r\n\r\n`gh copilot alias` will generate aliases for Bash, PowerShell, or Zsh that use fewer keystrokes to jump into the `gh copilot` experience:\r\n\r\n- `ghcs` for `gh copilot suggest`\r\n- `ghce` for `gh copilot explain`\r\n\r\n \r\n\r\n - Bash\r\n\r\n ```shell\r\n echo 'eval \"$(gh copilot alias -- bash)\"' >> ~/.bashrc\r\n ```\r\n\r\n - PowerShell\r\n\r\n ```powershell\r\n $GH_COPILOT_PROFILE = Join-Path -Path $(Split-Path -Path $PROFILE -Parent) -ChildPath \"gh-copilot.ps1\"\r\n gh copilot alias -- pwsh | Out-File ( New-Item -Path $GH_COPILOT_PROFILE -Force )\r\n echo \". $GH_COPILOT_PROFILE\" >> $PROFILE\r\n ```\r\n\r\n - Zsh\r\n\r\n ```shell\r\n echo 'eval \"$(gh copilot alias -- zsh)\"' >> ~/.zshrc\r\n ```\r\n\r\n \r\n\r\n - Bash\r\n\r\n ```shell\r\n echo 'eval \"$(gh copilot alias -- bash)\"' >> ~/.bashrc\r\n ```\r\n\r\n - PowerShell\r\n\r\n ```powershell\r\n $GH_COPILOT_PROFILE = Join-Path -Path $(Split-Path -Path $PROFILE -Parent) -ChildPath \"gh-copilot.ps1\"\r\n gh copilot alias -- pwsh | Out-File ( New-Item -Path $GH_COPILOT_PROFILE -Force )\r\n echo \". $GH_COPILOT_PROFILE\" >> $PROFILE\r\n ```\r\n\r\n - Zsh\r\n\r\n ```shell\r\n echo 'eval \"$(gh copilot alias -- zsh)\"' >> ~/.zshrc\r\n ```\r\n\r\n \r\n For instructions to setup aliases,
\r\n\r\n gh copilot alias --help
\r\n \r\n For instructions to setup aliases,
\r\n\r\n gh copilot alias --help
\r\n
TLDR: Running GH_DEBUG=api gh extension upgrade github/gh-copilot
fixed the issue (???)
Here is the output of the first command:
The second one created a darwin-arm64
file in my current folder as expected:
$ gh release download v1.0.0 -p darwin-arm64 -R github/gh-copilot
The third one worked successfully:
The fourth one worked also:
$ wget https://github.com/github/gh-copilot/releases/download/v1.0.0/darwin-arm64
@MartinDelille : I suspect you had some type of network issue outside of your control as every one of those commands is a different way to download the same resource. All good!
Thanks for taking the time to fill out this out! :bow: By submitting this issue, you agree to follow our Code of Conduct.
What happened?
I have an error when trying to upgrade gh-copilot.
Versions
gh version 2.46.0 (2024-03-20) https://github.com/cli/cli/releases/tag/v2.46.0
Relevant terminal output