Skip to content

On Windows gh-aw upgrade can't update gh-aw #27269

@dsyme

Description

@dsyme

On Windows we get

Checking gh-aw extension version...
ℹ Upgrading gh-aw extension from v0.68.1 to v0.68.3...
[aw]: failed to remove previous extension update state: unlinkat C:\Users\scott\AppData\Local\GitHub CLI\extensions\gh-aw\gh-aw.exe: Access is denied.
X Failed upgrading extension aw: some extensions failed to upgrade
✗ failed to upgrade gh-aw extension
  exit status 1

>gh extension upgrade gh-aw
X Failed upgrading extension aw: unable to retrieve latest version for extension "aw"
>gh extension upgrade github/gh-aw
X Failed upgrading extension aw: unable to retrieve latest version for extension "aw"12 replies

I think on Windows gh-aw upgrade simply can't self- upgrade gh-aw. If it's possible to do it we should fix it, if it's not possible we should handle this more gracefully, telling the user they shold run

gh extension upgrade gh-aw

or, if that doesn't work, try this:

gh extension remove gh-aw
gh extension install github/gh-aw

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcli

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions