dependabot[bot]
955751c82f
Bump once_cell from 1.15.0 to 1.16.0 ( #505 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 02:16:53 +00:00
dependabot[bot]
0f120b6948
Bump miette from 5.3.0 to 5.4.1 ( #506 )
...
Bumps [miette](https://github.com/zkat/miette ) from 5.3.0 to 5.4.1.
- [Release notes](https://github.com/zkat/miette/releases )
- [Changelog](https://github.com/zkat/miette/blob/main/CHANGELOG.md )
- [Commits](https://github.com/zkat/miette/compare/miette-derive-v5.3.0...miette-derive-v5.4.1 )
---
updated-dependencies:
- dependency-name: miette
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 13:05:20 +11:00
Jiahao XU
9ed04cf89b
Fix clippy error on unit test CI ( #503 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-28 13:48:16 +13:00
dependabot[bot]
3530f94243
Bump toml_edit from 0.14.4 to 0.15.0 ( #500 )
2022-10-24 14:22:30 +11:00
dependabot[bot]
78b9e820c3
Bump serde from 1.0.145 to 1.0.147 ( #501 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 13:45:34 +11:00
dependabot[bot]
351d1b747e
Bump futures-util from 0.3.24 to 0.3.25 ( #497 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.24 to 0.3.25.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.24...0.3.25 )
---
updated-dependencies:
- dependency-name: futures-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 02:59:37 +00:00
dependabot[bot]
cd549654cb
Bump clap from 4.0.17 to 4.0.18 ( #498 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.17 to 4.0.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.17...v4.0.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 13:43:30 +11:00
dependabot[bot]
5ff68472d4
Bump serde_json from 1.0.86 to 1.0.87 ( #496 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.86...v1.0.87 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-20 02:11:26 +00:00
Diogo Sousa
d90547c818
Support default filename with underscores. ( #495 )
...
This is the default format used by github action rust-build/rust-build.
2022-10-20 12:44:35 +11:00
dependabot[bot]
087d69da6e
Bump async-trait from 0.1.57 to 0.1.58 ( #494 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.57 to 0.1.58.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.57...0.1.58 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 02:24:09 +00:00
dependabot[bot]
7581e878ac
Bump clap from 4.0.16 to 4.0.17 ( #493 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.16 to 4.0.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.16...v4.0.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 02:05:05 +00:00
github-actions[bot]
b9f486d9f5
release: cargo-binstall v0.16.0 ( #491 )
...
Co-authored-by: github-actions <github-actions@github.com>
2022-10-18 17:42:21 +11:00
github-actions[bot]
e5f64f705f
release: binstalk v0.4.1 ( #492 )
...
(cargo-release) version 0.4.1
Co-authored-by: github-actions <github-actions@github.com>
2022-10-18 17:00:49 +11:00
Jiahao XU
f4f6e36984
Fix -V
behavior ( #488 )
...
Fixed #485
* Make `Duration` in MainExit::Success` optional
* Fix arg parsing: Print version on `-V`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-18 17:10:44 +13:00
dependabot[bot]
9ebcd1d426
Bump clap from 4.0.15 to 4.0.16 ( #489 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.16.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.15...v4.0.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 03:13:47 +00:00
dependabot[bot]
24aa099320
Bump cargo_toml from 0.12.4 to 0.13.0 ( #486 )
...
Bumps [cargo_toml](https://gitlab.com/crates.rs/cargo_toml ) from 0.12.4 to 0.13.0.
- [Release notes](https://gitlab.com/crates.rs/cargo_toml/tags )
- [Commits](https://gitlab.com/crates.rs/cargo_toml/commits/master )
---
updated-dependencies:
- dependency-name: cargo_toml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 02:55:54 +00:00
dependabot[bot]
ac7de213f9
Bump clap from 4.0.14 to 4.0.15 ( #483 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.14 to 4.0.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.14...v4.0.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-14 02:15:16 +00:00
dependabot[bot]
71ef2f6ed3
Bump mimalloc from 0.1.29 to 0.1.30 ( #484 )
...
Bumps [mimalloc](https://github.com/purpleprotocol/mimalloc_rust ) from 0.1.29 to 0.1.30.
- [Release notes](https://github.com/purpleprotocol/mimalloc_rust/releases )
- [Commits](https://github.com/purpleprotocol/mimalloc_rust/compare/v0.1.29...v0.1.30 )
---
updated-dependencies:
- dependency-name: mimalloc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-14 13:03:10 +11:00
dependabot[bot]
394425565a
Bump clap from 4.0.13 to 4.0.14 ( #482 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.13 to 4.0.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.13...v4.0.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-13 13:13:55 +11:00
Jiahao XU
aa6012baae
Make extraction cancellable for bin
and tar
based formats ( #481 )
...
Extraction wasn't cancellable by `cancel_on_user_sig_term` used in `entry` since it calls `block_in_place`.
This PR adds cancellation support to it by adding a `static` variable `OnceCell` to `wait_on_cancellation_signal` so that once it returns `Ok(())`, all other calls to it after that point also returns `Ok(())` immediately.
`StreamReadable`, which is used in cancellation process, then stores a boxed future of `wait_on_cancellation_signal` and polled it in `BufReader::fill_buf`.
Note that for zip, the extraction process takes `File` instead of `StreamReadable` due to `io::Seek` requirement, so it cancelling during extraction for zip is still not possible.
This PR also optimized `extract_bin` and `extract_zip` by using `StreamReadable::copy` introduced to this PR instead of `io::copy`, which allocates an internal buffer on stack, which imposes extra copy.
It also fixed `StreamReadable::fill_buf` by ensuring that empty buffer is only returned on eof.
* Make `wait_on_cancellation_signal` pub
* Enable feature `parking_lot` of dep tokio
* Mod `wait_on_cancellation_signal`: Use `OnceCell` internally
to archive the effect that once call to it return `Ok(())`, all calls to
it after that also returns `Ok(())`.
* Impl `From<BinstallError>` for `io::Error`
* Impl cancellation on user signal in `StreamReadable`
* Fix err msg when cancelling during extraction in `ops::resolve`
* Optimize: Impl & use `StreamReadable::copy`
which is same as `io::copy` but does not allocate any internal buffer
since `StreamReadable` is buffered.
* Fix `next_stream`: Return non-empty bytes on `Ok(Some(bytes))`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-13 13:31:13 +13:00
Jiahao XU
fdc617d870
Fix install_from_source
: Set cmd
to be kill_on_drop ( #479 )
...
If user interrupts `cargo-binstall` by signal while it is running `cargo-install`, then the `cargo-install` would continue to run at background even after `cargo-binstall` terminates.
Setting `cmd` to be kill_on_drop fixed this.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-12 17:56:26 +13:00
dependabot[bot]
035e600a56
Bump clap from 4.0.12 to 4.0.13 ( #477 )
2022-10-12 02:59:44 +00:00
dependabot[bot]
f4c840fa29
Bump home from 0.5.3 to 0.5.4 ( #478 )
2022-10-12 13:46:54 +11:00
dependabot[bot]
2c578e216e
Bump clap from 4.0.11 to 4.0.12 ( #476 )
2022-10-11 13:02:30 +11:00
Jiahao XU
e605a99113
Impl retry for 503 and 429 status code in response ( #473 )
...
* Add new dep httpdate v1.0.2
* Enable feature time of dep tokio in binstalk
* Impl retry for `helpers::remote::Client`
Fixed #472
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-10 17:54:29 +13:00
dependabot[bot]
4e1ac6ee0d
Bump clap from 4.0.10 to 4.0.11 ( #474 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.10 to 4.0.11.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.10...v4.0.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-10 02:27:06 +00:00
dependabot[bot]
1fdcc5a982
Bump serde_json from 1.0.85 to 1.0.86 ( #475 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.86 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-10 13:17:07 +11:00
github-actions[bot]
5e04a22c04
release: cargo-binstall v0.15.1 ( #470 )
...
Co-authored-by: github-actions <github-actions@github.com>
2022-10-08 18:56:59 +11:00
Jiahao XU
98b62251ad
Fix unit test & integration CI and the release CI ( #469 )
...
* Fix integration test: Make sure `cargo build cargo-binstall` would not fail due to binary already present
* Disable feature `zlib-ng` for release build
* Disable build-std for release build on aarch64-unknown-linux-gnu
* Fix clippy warning in unit test CI
* Fix compile-settings.jq
* Fix caching: Rm `restores-keys`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-08 20:26:46 +13:00
github-actions[bot]
5d51541dcf
release: cargo-binstall v0.15.0 ( #466 )
...
Co-authored-by: github-actions <github-actions@github.com>
2022-10-08 01:10:34 +11:00
github-actions[bot]
65c721f9a1
release: binstalk v0.4.0 ( #465 )
...
(cargo-release) version 0.4.0
Co-authored-by: github-actions <github-actions@github.com>
2022-10-08 01:01:03 +11:00
Jiahao XU
76bc030f90
Disable tcp_nodelay
for reqwest::Client
and add rate limiting for https requests ( #458 )
2022-10-07 15:51:34 +11:00
dependabot[bot]
8398ec2d4b
Bump clap from 4.0.9 to 4.0.10 ( #461 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-06 15:25:12 +13:00
Jiahao XU
3421403e75
Refactor and Optimizations ( #459 )
...
* Refactor: Avoid parsing `package.version()` twice in `ops::resolve` and `ops::install`
* Optimize Resolution: Replace `Package<Meta>` with two `CompactStrings`: `name` and `version`
* Use `CompactString` for `BinstallError::CratesIoApi::crate_name`
* Use `CompactString` for `BinstallError::VersionParse::v`
* Use `CompactString` for `BinstallError::VersionReq::req`
* Use `CompactString` for `BinstallError::VersionUnavailable::crate_name`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-06 04:19:12 +13:00
dependabot[bot]
70b0f8ec97
Bump clap from 4.0.8 to 4.0.9 ( #460 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.8 to 4.0.9.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.8...v4.0.9 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 16:04:05 +11:00
dependabot[bot]
405e41eda4
Bump cargo_toml from 0.12.2 to 0.12.4 ( #455 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-04 02:18:54 +13:00
dependabot[bot]
51fe4d59e3
Bump clap from 4.0.4 to 4.0.8 ( #456 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.4 to 4.0.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.4...v4.0.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 10:07:28 +00:00
Jiahao XU
dcbe701caa
Allow batch installation with cli_overrides
( #454 )
...
which allows pkg-fmt, bin-dir and pkg-url to be specified while providing multiple crates to install.
Fixed #444
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-03 12:07:16 +13:00
Jiahao XU
ec2bdb551e
Use CARGO
env variable if present ( #453 )
...
* Run `$CARGO -vV` in `detect-targets` if env `CARGO` present
* Improve crate doc for `detect-targets`
* Use env var `CARGO` in `install_from_source` if present
* Test use of `CARGO` env in `tests.sh`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-02 04:52:25 +13:00
dependabot[bot]
448542f0c8
Bump clap from 4.0.2 to 4.0.4 ( #451 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.0.2...v4.0.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-30 02:14:10 +00:00
Jiahao XU
aa864fad59
Bump clap to v4.0.2 ( #450 )
...
* Rm unused dep clap from crate `binstalk`
* Bump clap to v4.0.2
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-29 03:14:00 +00:00
dependabot[bot]
111bfde2cb
Update clap requirement from 3.2.22 to 4.0.2 in /crates/binstalk ( #448 )
...
Updates the requirements on [clap](https://github.com/clap-rs/clap ) to permit the latest version.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.0.0-rc.1...v4.0.2 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-29 12:00:53 +10:00
Jiahao XU
abd50a72ec
Fix skipping optional dep: Skip fetcher if they provide 0 bin ( #446 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-29 03:51:11 +13:00
github-actions[bot]
af3316a8f3
release: cargo-binstall v0.14.0 ( #443 )
...
* release: cargo-binstall v0.14.0
* Fix README
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-28 06:41:16 +00:00
github-actions[bot]
a79b880e1e
release: binstalk v0.3.0 ( #442 )
...
(cargo-release) version 0.3.0
Co-authored-by: github-actions <github-actions@github.com>
2022-09-28 16:22:14 +10:00
Jiahao XU
34df6176fe
Add more to possible_dirs
( #441 )
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-28 04:03:36 +00:00
Jiahao XU
f482e362ba
Make binaries with required-features
optional ( #438 )
...
* Make binaries with `required-features` optional so that crates like `sccache` would work as expected.
* Fix `infer_bin_dir_template`: concat with `data.bin_path` introduced in #417
* Always `chmod +x $bin` on unix in case the archive (e.g. `sccache`) did not set the executable bit of fmt == Bin.
* CI: Install `sccache` but do not run it since it requires cargo env to be ready
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-28 13:46:55 +10:00
Jiahao XU
4ba1e221ea
Improve auto discover ( #433 )
...
* Add new field `gh_crate_meta::Context::archive_suffix`
* Support `archive_suffix = ""` for unix
* Use `archive-suffix` in `FULL_FILENAMES` & `NOVERSION_FILENAMES` to support `PkgFmt::Bin`
* Simplify `PkgFmt::extensions`
* Fix `default_bin_dir_template` in `infer_bin_dir_template`: Fix typo `archive_suffix`
* Test `default_bin_dir_template` in CI
* Fix installation of `PkgFmt::Bin`: `chmod +x $bin` on unix if fmt == Bin
* Add miniserve to `.github/scripts/tests.sh`
* Update `SUPPORT.md`
* Add github-test-Cargo2.toml to test Github pkg-url with bin-dir provided
* Avoid allocation on processing `path_normalized` in `BinFile::from_product`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-28 02:52:14 +00:00
Jiahao XU
c15903684f
Feature/fix no symlink ( #432 )
...
* Refactor `BinFile::from_product`: Simplify logic flow.
* Fix `--no-symlink` behavior
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-09-28 02:32:22 +00:00
dependabot[bot]
e3cf3e9e3a
Bump thiserror from 1.0.36 to 1.0.37 ( #437 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.36...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-28 02:20:23 +00:00