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

Spurious help/error output if answer n to Would you like to configure ... as a Pants project? question #266

Open
huonw opened this issue Sep 6, 2023 · 0 comments

Comments

@huonw
Copy link
Contributor

huonw commented Sep 6, 2023

If one runs scie-pants in a directory that doesn't have a pants.toml (or one in any ancestor), scie-pants offers to set up, which is cool... but if one says n to this question, it prints out the help output and an error about "population of work directory failed"

No Pants configuration was found at or above /private/var/folders/sv/vd266m4d4lvctgs2wpnhjs9w0000gn/T/tmp.jXKhZ.
Would you like to configure /private/var/folders/sv/vd266m4d4lvctgs2wpnhjs9w0000gn/T/tmp.jXKhZ as a Pants project? (Y/n): n
Error: Isolates your Pants from the elements.

Please select from the following boot commands:

scie-pants
bootstrap-tools
pants
pants-debug
update

You can select a boot command by passing it as the 1st argument or else by setting the SCIE_BOOT environment variable.

ERROR: Failed to establish atomic directory /Users/huon/Library/Caches/nce/aeded33e4c5ab49e551020e735b8d759bd93ba517d04a6046aa60c805ec1bf2e/locks/configure-2aa56b368d34de98a990fbfe7b48c9e4c5a679ba5cc499a6db9e799c1c59e404. Population of work directory failed: Boot binding command failed: exit status: 1

Preferably scie-pants would exit immediately and silently after the n, without the text from Error: Isolates your Pants ... onwards.

Reproducer:

cd $(mktemp -d)

PANTS_BOOTSTRAP_VERSION=report pants
#> 0.10.0

# BUG:
echo n | pants
# output as above

Observed by @engnatha in #263 (comment)

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

No branches or pull requests

1 participant