Skip to content

fix(cli): ls exits non-zero when the listing is empty - #25

Merged
hoshimura merged 3 commits into
mainfrom
fix_ls_empty_exitcode
Oct 7, 2026
Merged

hoshimura merged 3 commits into
mainfrom
fix_ls_empty_exitcode

Conversation

@hoshimura

Copy link
Copy Markdown
Collaborator

Match grep/aws s3 ls: no results (missing path or empty container) exits 1 with no output, instead of printing (empty) and exiting 0. Pipe-friendly.

@hoshimura
hoshimura added this pull request to stack #26 October 6, 2026 07:23

@hannabjorgvins hannabjorgvins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N1

Base automatically changed from fix_resolve_s3region_without_imds to main October 7, 2026 09:40
Match grep/aws s3 ls: no results (missing path or empty container) exits 1
with no output, instead of printing (empty) and exiting 0. Pipe-friendly.
- add src/asanypath/py.typed so type checkers read the shipped annotations and .pyi stubs
- allowlist py.typed in deny-by-default .gitignore
- add packaging test asserting the marker ships in the installed package
@hoshimura
hoshimura force-pushed the fix_ls_empty_exitcode branch from 56eeed7 to 771b465 Compare October 7, 2026 09:41
@hoshimura
hoshimura merged commit 8826b99 into main Oct 7, 2026
8 checks passed
@hoshimura
hoshimura deleted the fix_ls_empty_exitcode branch October 7, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants