ossf / package-analysis

Open Source Package Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crates.io error with `itoa` package

maxfisher-g opened this issue · comments

Error occurs during install but the package is valid. Traceback reconstructed from logs:

Failed to install:
Traceback (most recent call last):
error: failed to parse manifest at `/usr/local/bin/Cargo.toml`
  virtual manifests must be configured with [workspace]
Caused by:
  File "/usr/local/bin/analyze-rust.py", line 97, in <module>
    main()
  File "/usr/local/bin/analyze-rust.py", line 93, in main
    phase(package)
  File "/usr/local/bin/analyze-rust.py", line 31, in install
    output = subprocess.check_output(['cargo', 'build'], stderr=subprocess.STDOUT)
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['cargo', 'build']' returned non-zero exit status 101.