Skip to content

scie-pants: location env variable not found #392

@adminy

Description

@adminy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions