plugin-update icon indicating copy to clipboard operation
plugin-update copied to clipboard

fix: no error when using --force

Open mdonnalley opened this issue 1 year ago • 1 comments

  • Fix ENOENT error when using --force flag by ensuring the destination directory is deleted
  • Remove lodash.throttle
  • Replace http-call with got

[skip-validate-pr]

mdonnalley avatar May 13 '24 19:05 mdonnalley

This issue has been linked to a new work item: W-15750437

git2gus[bot] avatar May 13 '24 19:05 git2gus[bot]

QA Notes


✅ :

 ➜  sf update --force
@salesforce/cli: Updating CLI from 2.40.7-bde121f to 2.40.7-bde121f... !
    Error: ENOENT: no such file or directory, rename '/Users/william.ruemmele/.local/share/sf/client/2.40.7-bde121f.partial.54065/sf' -> '/Users/william.ruemmele/.local/share/sf/client/2.40.7-bde121f'
    Code: ENOENT
➜  dreamhouse-lwc git:(main) ✗  hub:(DevHub) scratch:([email protected])
 ➜  sf update --force
 ›   Warning: @oclif/plugin-update is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.
 ›   Warning: @oclif/plugin-update is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.
# Release notes for 'sf':

## 2.40.7 (May 8, 2024) [stable]

.
.
.

@salesforce/cli: Updating CLI from 2.40.7-bde121f to 2.40.7-bde121f... done

WillieRuemmele avatar May 14 '24 20:05 WillieRuemmele