Jiahao XU
3f29fbe83a
Feature: SupportdDisable of strategies for crate using Cargo.toml
( #1828 )
...
* Refactor: Move `Strategy` to `binstalk-types`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add serialisation test for `Strategy`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add support to disable strategies via crate `Cargo.toml`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add e2e-test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `Cargo.toml` disabled strategy checking for compile strategy
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Optimize `resolve_inner`: Cache meta override
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add compile-time length checking for `Strategy`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* More optimization
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix order of override: cli options alwayus takes precedence
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add missing manifest for e2e-test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-23 14:05:22 +00:00
dependabot[bot]
0fe605f7f0
build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group ( #1817 )
...
* build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group
Bumps the deps group with 1 update: [compact_str](https://github.com/ParkMyCar/compact_str ).
Updates `compact_str` from 0.7.1 to 0.8.0
- [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ParkMyCar/compact_str/commits )
---
updated-dependencies:
- dependency-name: compact_str
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix compilation error and deprecations
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Use `CompactString::const_new` when possible
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-13 04:10:11 +00:00
github-actions[bot]
7032b06746
release: cargo-binstall v1.7.4 ( #1813 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-07-06 05:50:06 +00:00
github-actions[bot]
76814e4e8f
release: cargo-binstall v1.7.3 ( #1799 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-23 14:46:16 +00:00
github-actions[bot]
3236512293
release: binstalk v0.26.1 ( #1798 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-23 13:17:55 +00:00
github-actions[bot]
c8fc23b4b5
release: cargo-binstall v1.7.2 ( #1792 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-20 10:40:44 +00:00
github-actions[bot]
77565d8e40
release: binstalk v0.26.0 ( #1791 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-20 00:30:15 +00:00
github-actions[bot]
0d7080e6a9
release: cargo-binstall v1.7.1 ( #1774 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 07:27:29 +00:00
github-actions[bot]
6ed611c66e
release: binstalk v0.25.0 ( #1773 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 07:00:10 +00:00
Jiahao XU
fff6aa8122
Improve use of github token ( #1769 )
...
* Add new dep zeroize
* Use Zeroizing to avoid leaking the token
* Optimize gh-auth-token
Spawn it as a task, and only await it
when using GhApiClient
* Fix binstalk-git-repo-api unit tests
2024-06-15 05:42:09 +00:00
github-actions[bot]
9891eac34c
release: cargo-binstall v1.7.0 ( #1765 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 00:27:27 +00:00
Jiahao XU
4c68c80ab8
Add env var BINSTALL_NO_DISCOVER_GITHUB_TOKEN ( #1763 )
...
* Add env var BINSTALL_NO_DISCOVER_GITHUB_TOKEN
For #1733
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix fmt
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix fmt
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 13:21:14 +00:00
github-actions[bot]
5c9a7b2c80
release: binstalk v0.24.1 ( #1762 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 13:12:01 +00:00
Jiahao XU
34cca9f415
Use io::Error::downcast in 1.79 ( #1754 )
...
* Bump msrv of binstalk-downloader, binstalk and cargo-binstall to 1.79
* Update From<io::Error> for DownloadError
to use io::Error::downcast
* Update From<io::Error> for BinstallError
* fix dmt
2024-06-14 08:00:53 +00:00
github-actions[bot]
9a270f03b6
release: binstalk v0.24.0 ( #1743 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 11:41:33 +00:00
Jiahao XU
cd85622b13
Improve gh token auto scraping ( #1746 )
...
* Log the gh-auth token retrieval failure on debug level
Fixed #1733
* Make gh_token::get an async function
* Improve returned err msg in gh_token::get
* Update use of gh_token::get() in entry.rs
* Fix typos
* Fix unclosed ()
* Fix unclosed ()
* Fix gh_token.rs
* Fix entry.rs
* Fix fmt in entry.rs
* Fix fmt in gh_token.rs
* Fix fmt in gh_token.rs
* Fix fmt in gh_token.rs
* Fix fmt in entry.rs
2024-06-13 10:50:47 +00:00
github-actions[bot]
48ee0b0e3e
release: cargo-binstall v1.6.9 ( #1719 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-08 06:00:33 +00:00
github-actions[bot]
2d221debd8
release: cargo-binstall v1.6.8 ( #1710 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-25 01:39:17 +00:00
github-actions[bot]
4545b16e0b
release: cargo-binstall v1.6.7 ( #1707 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-18 06:13:50 +00:00
github-actions[bot]
6cede2e8dc
release: binstalk v0.23.1 ( #1706 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-18 05:20:48 +00:00
github-actions[bot]
496eda8439
release: cargo-binstall v1.6.6 ( #1697 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-11 03:35:50 +00:00
dependabot[bot]
e74127b04e
build(deps): bump file-format from 0.24.0 to 0.25.0 in the deps group ( #1696 )
...
Bumps the deps group with 1 update: [file-format](https://github.com/mmalecot/file-format ).
Updates `file-format` from 0.24.0 to 0.25.0
- [Release notes](https://github.com/mmalecot/file-format/releases )
- [Changelog](https://github.com/mmalecot/file-format/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mmalecot/file-format/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: file-format
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-11 01:43:39 +00:00
github-actions[bot]
dfdaf6952e
release: cargo-binstall v1.6.5 ( #1686 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-03 08:19:06 +00:00
github-actions[bot]
11f5feac08
release: binstalk v0.23.0 ( #1678 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-03 02:07:00 +00:00
Jiahao XU
6ef3b665f4
Fix clippy lint error in 1.78.0 ( #1679 )
...
* Bump msrv of binstalk-downloader to 1.70.0
* Fix trait bound in multiple places
for copy_file_to_mpsc
* Rm super-trait trait bounds for FusedStream
* Bump detect-targets msrv to 1.62.0
* Bump cargo-binstall msrv to 1.70.0
2024-05-02 23:03:12 +00:00
dependabot[bot]
69a701d12e
build(deps): bump the deps group with 2 updates ( #1649 )
...
Bumps the deps group with 2 updates: [clap](https://github.com/clap-rs/clap ) and [simple-git](https://github.com/cargo-bins/simple-git ).
Updates `clap` from 4.5.2 to 4.5.3
- [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.5.2...v4.5.3 )
Updates `simple-git` from 0.2.3 to 0.2.4
- [Release notes](https://github.com/cargo-bins/simple-git/releases )
- [Commits](https://github.com/cargo-bins/simple-git/commits/0.2.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
- dependency-name: simple-git
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-16 01:54:37 +00:00
github-actions[bot]
be2934e283
release: cargo-binstall v1.6.4 ( #1645 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-03-09 05:28:33 +00:00
github-actions[bot]
0c219ebf51
release: cargo-binstall v1.6.3 ( #1624 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-02-13 09:05:03 +00:00
github-actions[bot]
83442b013e
release: binstalk v0.22.0 ( #1622 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-02-13 07:14:29 +00:00
github-actions[bot]
1c95c73a38
release: binstalk-manifests v0.13.0 ( #1619 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-02-12 12:24:16 +00:00
dependabot[bot]
42215f774a
build(deps): bump the deps group with 5 updates ( #1612 )
...
* build(deps): bump the deps group with 5 updates
Bumps the deps group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [file-format](https://github.com/mmalecot/file-format ) | `0.23.0` | `0.24.0` |
| [miette](https://github.com/zkat/miette ) | `5.10.0` | `7.0.0` |
| [supports-color](https://github.com/zkat/supports-color ) | `2.1.0` | `3.0.0` |
| [simple-git](https://github.com/cargo-bins/simple-git ) | `0.2.2` | `0.2.3` |
| [toml_edit](https://github.com/toml-rs/toml ) | `0.21.1` | `0.22.4` |
Updates `file-format` from 0.23.0 to 0.24.0
- [Release notes](https://github.com/mmalecot/file-format/releases )
- [Changelog](https://github.com/mmalecot/file-format/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mmalecot/file-format/compare/v0.23.0...v0.24.0 )
Updates `miette` from 5.10.0 to 7.0.0
- [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.10.0...miette-derive-v7.0.0 )
Updates `supports-color` from 2.1.0 to 3.0.0
- [Release notes](https://github.com/zkat/supports-color/releases )
- [Changelog](https://github.com/zkat/supports-color/blob/main/CHANGELOG.md )
- [Commits](https://github.com/zkat/supports-color/compare/v2.1.0...v3.0.0 )
Updates `simple-git` from 0.2.2 to 0.2.3
- [Commits](https://github.com/cargo-bins/simple-git/commits )
Updates `toml_edit` from 0.21.1 to 0.22.4
- [Commits](https://github.com/toml-rs/toml/compare/v0.21.1...v0.22.4 )
---
updated-dependencies:
- dependency-name: file-format
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: miette
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: deps
- dependency-name: supports-color
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: deps
- dependency-name: simple-git
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
- dependency-name: toml_edit
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix compilation of `leon` when feature `cli` is enabled
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-02-11 12:55:47 +00:00
github-actions[bot]
3f271cce2b
release: cargo-binstall v1.6.2 ( #1608 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-02-04 01:50:56 +00:00
github-actions[bot]
1f49dcaa28
release: binstalk v0.21.0 ( #1606 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-02-03 15:03:04 +00:00
github-actions[bot]
9e57c9cd71
release: binstalk-manifests v0.12.0 ( #1602 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-02-03 12:59:58 +00:00
dependabot[bot]
923c317bd4
build(deps): bump the deps group with 3 updates ( #1596 )
...
Bumps the deps group with 3 updates: [strum](https://github.com/Peternator7/strum ), [strum_macros](https://github.com/Peternator7/strum ) and [cargo_toml](https://gitlab.com/lib.rs/cargo_toml ).
Updates `strum` from 0.25.0 to 0.26.1
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits/v0.26.1 )
Updates `strum_macros` from 0.25.3 to 0.26.1
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits/v0.26.1 )
Updates `cargo_toml` from 0.18.0 to 0.19.1
- [Commits](https://gitlab.com/lib.rs/cargo_toml/commits/main )
---
updated-dependencies:
- dependency-name: strum
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: strum_macros
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: cargo_toml
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-03 02:47:42 +00:00
github-actions[bot]
a7c691873d
release: cargo-binstall v1.6.1 ( #1586 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-01-21 09:12:02 +00:00
Jiahao XU
32b73b1ee9
Update crates.io description for cargo-binstall ( #1583 )
...
Since the one on GitHub has changed.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-01-20 14:46:34 +00:00
github-actions[bot]
7fc0a333e3
release: binstalk v0.20.1 ( #1580 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-01-20 08:06:39 +00:00
github-actions[bot]
7d25079422
release: cargo-binstall v1.6.0 ( #1571 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-01-13 09:44:33 +00:00
github-actions[bot]
b497939ec6
release: binstalk v0.20.0 ( #1570 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-01-13 08:28:22 +00:00
dependabot[bot]
69c5c3714c
build(deps): bump the deps group with 2 updates ( #1567 )
...
Bumps the deps group with 2 updates: [vergen](https://github.com/rustyhorde/vergen ) and [cargo_toml](https://gitlab.com/lib.rs/cargo_toml ).
Updates `vergen` from 8.2.6 to 8.2.7
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/8.2.6...8.2.7 )
Updates `cargo_toml` from 0.17.2 to 0.18.0
- [Commits](https://gitlab.com/lib.rs/cargo_toml/commits/v0.18.0 )
---
updated-dependencies:
- dependency-name: vergen
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
- dependency-name: cargo_toml
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-13 03:11:53 +00:00
Jiahao XU
c08b8d232a
feat: Impl new option --continue-on-failure
( #1559 )
...
* feat: Impl new option `--continue-on-failure`
Resolve #1548
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add new e2e-tests continue-on-failure
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rm dup line ion `e2e-tests/live.sh`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix shellcheck
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `BinstallError::crate_errors` if `errors.len()` is 1
In that case, it should return `Some(Self::CrateContext(_))` instead of
`Some(Self::Errors(_))`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more tests to `e2e-tests/continue-on-failure.sh`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Propagate crate errors on `confirm()` err
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Test having two errors in `e2e-tests/continue-on-failure.sh`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-01-08 12:09:45 +00:00
github-actions[bot]
763885b3a5
release: cargo-binstall v1.5.0 ( #1558 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-01-07 00:46:33 +00:00
Dustin Blackman
b14f78b982
feat: Add strategies environment variable ( #1555 )
2024-01-06 12:39:54 +00:00
dependabot[bot]
dca22b6548
build(deps): bump the deps group with 1 update ( #1556 )
...
Bumps the deps group with 1 update: [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource ).
Updates `embed-resource` from 2.4.0 to 2.4.1
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases )
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v2.4.0...v2.4.1 )
---
updated-dependencies:
- dependency-name: embed-resource
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-06 03:20:08 +00:00
github-actions[bot]
b48410fbe8
release: cargo-binstall v1.4.9 ( #1546 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-12-26 11:04:59 +00:00
github-actions[bot]
ef85500736
release: cargo-binstall v1.4.8 ( #1532 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-12-16 04:40:00 +00:00
dependabot[bot]
f23a619a61
build(deps): bump the deps group with 3 updates ( #1530 )
...
Bumps the deps group with 3 updates: [file-format](https://github.com/mmalecot/file-format ), [home](https://github.com/rust-lang/cargo ) and [thiserror](https://github.com/dtolnay/thiserror ).
Updates `file-format` from 0.22.0 to 0.23.0
- [Release notes](https://github.com/mmalecot/file-format/releases )
- [Changelog](https://github.com/mmalecot/file-format/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mmalecot/file-format/compare/v0.22.0...v0.23.0 )
Updates `home` from 0.5.5 to 0.5.9
- [Changelog](https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cargo/commits )
Updates `thiserror` from 1.0.50 to 1.0.51
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.50...1.0.51 )
---
updated-dependencies:
- dependency-name: file-format
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: home
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-16 01:15:39 +00:00
github-actions[bot]
f6a95fa733
release: cargo-binstall v1.4.7 ( #1523 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-12-12 04:02:34 +00:00
github-actions[bot]
3d22e1b8f4
release: binstalk v0.19.0 ( #1522 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2023-12-12 02:40:07 +00:00