autify-cli icon indicating copy to clipboard operation
autify-cli copied to clipboard

Fix `autify update` with Windows and brew

Open riywo opened this issue 3 years ago • 2 comments

On Windows:

Run autify update
@autifyhq/autify-cli: Updating CLI... not updatable

With brew on GitHub Actions:

Run autify update
@autifyhq/autify-cli: Updating CLI... fetching manifest

@autifyhq/autify-cli: Updating CLI from 0.10.0-beta.0 to 0.10.0-beta.0-2f002ba (beta)... done
node:internal/process/promises:2[7](https://github.com/autifyhq/autify-cli/actions/runs/3031442476/jobs/4878335436#step:8:8)[9](https://github.com/autifyhq/autify-cli/actions/runs/3031442476/jobs/4878335436#step:8:10)
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open '/Users/runner/.local/share/autify/channel'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/runner/.local/share/autify/channel'
}

Note: autify update works on my macOS laptop (autify is installed via brew).

GitHub Actions example: https://github.com/autifyhq/autify-cli/actions/runs/3031442476

riywo avatar Sep 12 '22 22:09 riywo

https://github.com/oclif/plugin-update/blob/091c176ef639a7a0c991ab1b726e832783670324/src/update.ts#L257-L265

riywo avatar Sep 14 '22 21:09 riywo

Windows bugs are fixed by #132 #135

riywo avatar Sep 15 '22 08:09 riywo