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

scie-pants: location env variable not found #392

Open
adminy opened this issue May 10, 2024 · 3 comments
Open

scie-pants: location env variable not found #392

adminy opened this issue May 10, 2024 · 3 comments

Comments

@adminy
Copy link

adminy commented May 10, 2024

Running: RUST_LOG=debug scie-pants
Gives:

[DEBUG TimerFinished] BuildRoot::find(), Elapsed=9.182µs
[DEBUG TimerFinished] PantsConfig::parse(), Elapsed=2.161389ms
[INFO  scie_pants] Found Pants build root at Some("/root/repos/proj")
[INFO  scie_pants] The required Pants version is Some("1.30.0")
[DEBUG TimerFinished] scie-pants::get_pants_process(), Elapsed=2.255882ms
[DEBUG TimerFinished] MAIN, Elapsed=2.259232ms
Error: Failed to retrieve SCIE location from the environment.

Caused by:
    environment variable not found

Running: RUST_LOG=debug SCIE=inspect scie-pants
Gives:

[DEBUG TimerFinished] BuildRoot::find(), Elapsed=744.538µs
[INFO  scie_pants] Found Pants build root at None
[INFO  scie_pants] The required Pants version is None
[DEBUG TimerFinished] scie-pants::get_pants_process(), Elapsed=1.04068ms
[DEBUG TimerFinished] MAIN, Elapsed=1.105761ms
Error: Failed to exec process.

Caused by:
    ENOENT: No such file or directory

Then when setting export PANTS_SOURCE=/root/repos/pants
and running: RUST_LOG=debug scie-pants
Gives:

[DEBUG TimerFinished] BuildRoot::find(), Elapsed=8.898µs
/root/repos/pants/pants:source:24: no such file or directory: /root/repos/proj/build-support/common.sh`

and running: RUST_LOG=debug SCIE=inspect scie-pants
Gives:

[DEBUG TimerFinished] BuildRoot::find(), Elapsed=11.592µs`

only if run from pants dir, otherwise same error as previous command run saying: no such file or directory: /root/repos/proj/build-support/common.sh

Version

PANTS_BOOTSTRAP_VERSION=report scie-pants
0.11.0
@kaos
Copy link
Member

kaos commented May 16, 2024

I'm stumped that SCIE=inspect fails where as PANTS_BOOTSTRAP_VERSION=reports doesn't?

You could try running with RUST_LOG=debug might give some additional clues.

@adminy
Copy link
Author

adminy commented May 16, 2024

Updated the original to include Debug logs.

@kaos
Copy link
Member

kaos commented May 16, 2024

Could be that the later versions of scie-pants are unable to run pants 1.x. scie-pants are not tested against pants 1.x, and could be broken in that regard.

If you are using pants 1.30.0, then the best bet could be to keep using the older pants bootstrap script instead, until you're able to upgrade to a 2.x version of pants.

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

2 participants