google / google/clasp

A silent failure occurs if a file path listed in `filePushOrder` does not exist

Open
#984 5 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
5.8k
Forks
510
Avg merge
5h 27m
Merged PRs (30d)
1

Description

> (Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

## Expected Behavior

If a file path listed in `filePushOrder` does not exist, I would expect `clasp push` to fail with a clear error message.

## Actual Behavior

It just skips the missing file and continues as if nothing went wrong.

## Steps to Reproduce the Problem

1. Add a path to a non-existing file to `filePushOrder`
1. Run `clasp push`
1. Observe that the output to stdout and stderr includes no error message about the non-existing file path
1. Run `echo $?`
1. Observe that the exit code of `clasp push` is `0` but should have been non-zero.

## Specifications

- Node version (`node -v`): `v20.8.1`
- Version (`clasp -v`): `2.4.2`
- OS (Mac/Linux/Windows): macOS 13.6 22G120

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.