Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

No such file or directory when pulling files #1

@maxcamp

Description

@maxcamp

Summary

When running pull with this plugin, you get the error no such file or directory, open '/var/folders/vn/485p.....'. The error does not occur in debug mode so my guess is it's something with an async call to write the file.

Steps To Reproduce:

  1. Set up and link the plugin
  2. Set the necessary environment variable, $SFDX_ORG_PATH
  3. Make a remote change to a custom object
  4. Run sfdx force:source:pull

Expected result

The hook should run, the pull command should finish as expected, and the output table should show No Results Found.

Actual result

The error ERROR running force:source:pull: ENOENT: no such file or directory, open '/var/folders/vn/485pjx4918n8wj0s6hs758mr0000gp/T/sdx_pull_1596822273951/unpackaged/objects/XXX.object'

Additional information

The file that is 'no such file or directory' is the file that the hook reads and writes to. However the error triggers not within the hook but afterwards in the updateSource() and commitMetadata() functions.

SFDX CLI Version: 7.66.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions