Commit graph

376 commits

Author SHA1 Message Date
github-actions[bot]
3ed2912cc1
release: cargo-binstall v1.10.7 (#1926)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-10-04 12:03:43 +00:00
github-actions[bot]
a7794f08a6
chore: release (#1924)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-04 10:54:17 +00:00
github-actions[bot]
3a99ae3c15
release: cargo-binstall v1.10.6 (#1922)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-09-22 10:17:00 +00:00
github-actions[bot]
4a15b12fd1
chore: release (#1916)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-22 08:59:21 +00:00
John Vandenberg
2917b32788
allow setting no_confirm via envvar (#1921) 2024-09-22 07:06:01 +00:00
github-actions[bot]
f9144d57df
release: cargo-binstall v1.10.5 (#1914)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-09-11 09:06:06 +00:00
github-actions[bot]
8c9e183587
chore: release (#1911)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-11 08:37:44 +00:00
David Laban
c8dec953cc
report to new stats server (with status) (#1912)
* docstrings for things that I was curious about

* report to new stats server, with status

* Arc<Self> needs a clone

* fix stats url in docs

* fix stats url handling
2024-09-11 08:15:15 +00:00
github-actions[bot]
780584e44b
release: cargo-binstall v1.10.4 (#1908)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-09-06 22:43:53 +00:00
github-actions[bot]
89203c196c
chore: release (#1902)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-06 13:37:48 +00:00
Jiahao XU
3331364a65
reduce default for maximum_resolution_timeout to 15s (#1900)
If then default is too long, then users would still have to wait a long time if they hit rate limit.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-29 12:45:33 +00:00
github-actions[bot]
9330730a2a
release: cargo-binstall v1.10.3 (#1898)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-08-25 09:18:31 +00:00
github-actions[bot]
05bfcbce0e
chore: release (#1883)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-25 08:37:25 +00:00
Alejandro González
b599493600
docs: mention quickinstall telemetry collection in --help and README (#1890)
* docs: mention `quickinstall` telemetry collection in `--help` and README

These changes describe the usage statistics collected when the
`quickinstall` strategy is used by default, according to the discussion
and details brought forward on
https://github.com/cargo-bins/cargo-binstall/issues/1884. Both the
project README and the CLI long help contain clear disclosures of such
statistics collection now.

Signed-off-by: Alejandro González <me@alegon.dev>

* docs: add some more data collection details

Signed-off-by: Alejandro González <me@alegon.dev>

---------

Signed-off-by: Alejandro González <me@alegon.dev>
2024-08-20 10:24:13 +00:00
github-actions[bot]
c4abcb90a5
release: cargo-binstall v1.10.2 (#1881)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-08-13 09:15:54 +00:00
github-actions[bot]
ad67d44ff6
release: cargo-binstall v1.10.1 (#1880)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-08-12 14:55:46 +00:00
github-actions[bot]
2c00df4c90
chore: release (#1878)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-12 14:22:35 +00:00
github-actions[bot]
d35fecfd64
release: cargo-binstall v1.10.0 (#1875)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-08-10 08:24:15 +00:00
github-actions[bot]
53512b9271
chore: release (#1870)
* chore: release

* Bump dependents of binstall-types to next major version

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-10 07:46:44 +00:00
Jiahao XU
b854f3f52c
feature: Merge disable strategies (#1868)
* feat: Merge --disable-strategies with ones in cargo manifest

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Update doc

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Update e2e-test-strategies

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix typo in option doc in crates/bin/src/args.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-07 14:04:00 +00:00
github-actions[bot]
23ee8ab6b7
release: cargo-binstall v1.9.0 (#1863)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-08-04 05:32:22 +00:00
github-actions[bot]
cf7c8f9656
chore: release (#1853)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-04 03:04:47 +00:00
Jiahao XU
52f2db4f57
Add --maximum-resolution-timeout (#1862)
* Add --maximum-resolution-timeout

Fixed #1823

* Display default value for `--maximum-resolution-timeout` in help
2024-08-04 02:13:18 +00:00
Jiahao XU
ee94b8b639
Fix: --strategies on CLI do not seem to override disabled-strategies in the manifest (#1857)
* Fix cli override in entry.rs

Forward `args.disabled_strategies`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix `args::parse`: Do not free disabled_strategies

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix passing of cli_overrides

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Create strategies-test-override-Cargo.toml

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add e2e-tests for cli-overrides

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix entry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix entry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix entry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update strategies.sh

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Compute cli_overrides in args::parse

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix use of args::parse main_impl.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update entry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix args::parse

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix typo in args.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix args.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix fmt in args.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix fmt in main_impl.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* update e2e-test-strategies

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update e2e-tests/strategies.sh

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update e2e-tests/strategies.sh

Make sure both --strategies and --disable-strategies is tested

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update strategies.sh

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 05:27:23 +00:00
github-actions[bot]
f2a184de0e
release: cargo-binstall v1.8.0 (#1849)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 11:34:38 +00:00
github-actions[bot]
40a083f65d
release: binstalk v0.27.0 (#1848)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 10:49:28 +00:00
github-actions[bot]
75d46eeaab
release: binstalk-manifests v0.14.0 (#1844)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 09:25:15 +00:00
Jiahao XU
6b4dbb4caa
Fix: Ignore invalid Github Token (#1839)
* Fix: Ignore empty Github Token

Empty GitHub Token is invalid, it should not be used.

* Fix compilation

And detect more invalid tokens

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-26 08:21:36 +00:00
Jiahao XU
e017be2247
Add env for --disable-strategies (#1838)
Fixed #1833
2024-07-26 06:46:04 +00:00
Jiahao XU
6809601273
Add new option to --disable-telemetry to disable quickinstall statistics collection (#1831)
* Add new option `--disable-quick-install-stats`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Send quickinstall stats in parallel

This commit also make sure'the stats is always sent for
each fetcher, regardless of whether it is picked or not,
to make sure that the quick-install stats collection gets
the full infomration of possible targets.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Rename option to `--disable-telemetry`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Update args.rs

Co-authored-by: Félix Saparelli <felix@passcod.name>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update args.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-07-26 06:03:38 +00:00
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