-
Notifications
You must be signed in to change notification settings - Fork 19
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
Pass --python-repos-find-links always, and deprecate PANTS_SHA #250
Conversation
Just noting some manual testing: I've confirmed the
This doesn't seem to interfere with additional manual instances of that arg, e.g.
|
Clever, but in the "we need to get unblocked" way 👍 |
Also, does this mean we should bump the version number of 😬 |
|
See pantsbuild/scie-pants#250 for the required fix.
See pantsbuild/scie-pants#250 for the required fix.
See pantsbuild/scie-pants#250 for the required fix. Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
See pantsbuild/scie-pants#250 for the required fix.
See pantsbuild/scie-pants#250 for the required fix. Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
Currently, the
scie-pants
launcher sometimes needs to pass an additional argument to the underlying pants invocation, to be able to supportPANTS_SHA
and its custom wheel location. Effectively turning an invocation likepants goal --arg
intopants --pants-repos-find-links=+["..."] goal --arg
when appropriate:scie-pants/package/scie-pants.toml
Lines 57 to 60 in 0a204c5
However, when not using
PANTS_SHA
, the pants command becomespants "" goal --arg
, and the spurious empty string results in some commands failing, e.g.pants "" tailor --check
thinks--check
is a global argument, and this is ambiguous.To fix this issue, this PR does two things:
PANTS_SHA_FIND_LINKS
variable (to a no-op like--python-repos-find-links=-[]
), so that scie-pants never passes an empty variable to the pants command, since that makes commands likepants tailor --check ::
explode:PANTS_SHA
, so that the hack above doesn't feel so bad: we're on the way to removing the need forPANTS_SHA_FIND_LINKS
entirely, thus sidestepping the limitation and the need for the workaround (2)This could also be fixed via a-scie/jump#130.
Fixes #249