-
Notifications
You must be signed in to change notification settings - Fork 20
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
SCIE_BOOT=update pants
results in installation error
#263
Comments
In testing something unrelated, I was able to reproduce a similar behavior. By running pants in an uninitialized directory and responding
|
Hm, the contents of the log isn't very insightful 🤔
What version of |
Huh, it's unfortunate that the log isn't insightful. I have
|
Thanks @jtilahun ... that's the latest, so there's definitely something to look at here. Here's some general questions that might narrow things down somewhat, maybe:
|
Here are answers to those questions:
Here's the log that you requested I upload: strace.log |
Thanks. It looks like the error is during a recursive invocation, scie-pants/tools/src/scie_pants/record_scie_pants_info.py Lines 37 to 43 in 4df586c
scie-pants/package/scie-pants.toml Lines 152 to 165 in 4df586c
The error almost certainly comes from https://github.com/a-scie/jump/blob/b7b1efbc9ca276da759e1b2b74e3ecd7d5bbaffc/jump/src/context.rs#L37-L38. That error occurring suggests https://docs.rs/dirs/5.0.1/dirs/fn.home_dir.html is returning The strace log explicitly shows
This aligns with the @jtilahun do you feel like submitting a pull request with that change? It's a bit weird to me that this is the first observation of this failure, with @engnatha I think that's a separate issue, which I filed as #266. Thanks for flagging. |
Hmm, there's something going on that I haven't grasped quite yet. I tried isolating this to a minimum reproducible example of
I built the binary with
I don't feel like I understand what's happening. I don't want to submit a pull request until I feel like I have a better understanding of what's happening. |
Yes, I agree with investigating more given my theory doesn't seem to hold. Thanks for checking! What happens if you run it without any env vars at all: |
If I run it without any env vars at all, it's still able to find my home directory:
|
Hm, I note that you've set Lines 184 to 195 in 4df586c
|
I tried with a newer
Here's my
Note that Line 29 in 4df586c
Here's my |
I haven't known where
Searching the repo, I found the one result here: https://github.com/a-scie/jump/blob/71d2a9d9f7f197cf185fd48426e46ee026fb4587/jump/src/context.rs#L241. Reading the surrounding code, it looks as if it's trying to set up a context of some sort. To get the base directory, it first checks So I wondered what would happen if I were to set nce.mp4So I'm thinking that there's some funny business going on with the directory handling logic. I still haven't pinpointed exactly what it is, but something smells fishy. |
I just ran into this issue on an ubuntu laptop. The relevant bit in the strace log shows
My user account comes from active directory via I can reproduce the
So, @jtilahun, you tested your mini rust program with edit: Oh. I see you used
|
Attempting to upgrade the
pants
launcher binary on my computer results in an installation error. Full output and log file can be found below.record-scie-pants-info.log
The text was updated successfully, but these errors were encountered: