Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "rm: no operand" error in clean-pyc script #7878

Merged

Conversation

hankehly
Copy link
Contributor

@hankehly hankehly commented Nov 3, 2022

Description

make clean-pyc fails with the following error when there are no cache files to delete. We can fix this by adding the -r flag to xargs to prevent it from running on empty input.

$ docker compose -f docker/docker-compose.yml run --rm celery
[+] Running 4/0
 ⠿ Container docker-azurite-1   Running                                                                                                                                                                                                         0.0s
 ⠿ Container docker-redis-1     Running                                                                                                                                                                                                         0.0s
 ⠿ Container docker-dynamodb-1  Running                                                                                                                                                                                                         0.0s
 ⠿ Container docker-rabbit-1    Running                                                                                                                                                                                                         0.0s
rm: missing operand
Try 'rm --help' for more information.
rm: missing operand
Try 'rm --help' for more information.

Searching around, it looks like one other person has experienced this.

@auvipy auvipy merged commit d5a1776 into celery:master Nov 3, 2022
@auvipy
Copy link
Member

auvipy commented Nov 3, 2022

thanks

@hankehly hankehly deleted the fix_entrypoint_missing_operand_error branch November 3, 2022 13:51
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.

None yet

2 participants