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

0.7.1 fails to build from crates.io #50

Closed
foresterre opened this issue Sep 6, 2018 · 1 comment · Fixed by #51
Closed

0.7.1 fails to build from crates.io #50

foresterre opened this issue Sep 6, 2018 · 1 comment · Fixed by #51

Comments

@foresterre
Copy link
Owner

foresterre commented Sep 6, 2018

Install with cargo install --force sic fails;

Probably because if you use cargo install, no cargo.lock is available to run cargo-bom upon?

Temporary resolution: cargo yank --vers 0.7.1

Build log:

PS> cargo install --force sic
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading sic v0.7.1
  Installing sic v0.7.1
   Compiling version_check v0.1.4
   Compiling cfg-if v0.1.5
   Compiling nodrop v0.1.12
   Compiling scopeguard v0.3.3
   Compiling memoffset v0.2.1
   Compiling proc-macro2 v0.4.18
   Compiling num-traits v0.2.5
   Compiling num-integer v0.1.39
   Compiling rayon-core v1.4.1
   Compiling libc v0.2.43
   Compiling unicode-xid v0.1.0
   Compiling winapi v0.3.5
   Compiling num-iter v0.1.37
   Compiling rayon v1.0.2
   Compiling unicode-xid v0.0.4
   Compiling either v1.5.0
   Compiling byteorder v1.2.6
   Compiling adler32 v1.0.3
   Compiling color_quant v1.0.1
   Compiling bitflags v1.0.4
   Compiling unicode-width v0.1.5
   Compiling lzw v0.10.0
   Compiling quote v0.3.15
   Compiling sic v0.7.1
   Compiling scoped_threadpool v0.1.9
   Compiling strsim v0.7.0
   Compiling vec_map v0.8.1
   Compiling pest v1.0.6
   Compiling crossbeam-utils v0.2.2
   Compiling arrayvec v0.4.7
   Compiling num_cpus v1.8.0
   Compiling lazy_static v1.1.0
   Compiling synom v0.11.3
   Compiling inflate v0.4.3
   Compiling textwrap v0.10.0
   Compiling deflate v0.7.18
   Compiling gif v0.10.0
error: failed to run custom build command for `sic v0.7.1`
process didn't exit successfully: `C:\Users\$env:UserName\AppData\Local\Temp\cargo-installWaWBU3\release\build\sic-3e43ea185127d3dc\build-script-build` (exit code: 101)
--- stdout
Starting the pre-processing of a `sic` build.
cargo-bom path found at: "C:\\Users\\$env:UserName\\.cargo\\bin\\cargo-bom.exe"

--- stderr
thread 'main' panicked at 'Unable to create dependency license file.: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', libcore\result.rs:983:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile `sic v0.7.1`, intermediate artifacts can be found at `C:\Users\$env:UserName\AppData\Local\Temp\cargo-installWaWBU3`

Caused by:
  build failed
@foresterre
Copy link
Owner Author

The only thing cargo-bom needs is a Cargo.toml file with [[bin]] specified.
An option is to just download a Cargo.toml file from this repository, maybe matching a release tag (but maybe it is available in the registry index somewhere?) and run cargo bom on that.
But I prefer not to download anything if possible, as then I probably need to add a dependency on a http package... Only for the build.rs file.

foresterre added a commit that referenced this issue Sep 8, 2018
foresterre added a commit that referenced this issue Sep 8, 2018
@foresterre foresterre mentioned this issue Sep 8, 2018
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

Successfully merging a pull request may close this issue.

1 participant