Commit graph

2010 commits

Author SHA1 Message Date
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
fa105bb8d7
Update doc in SUPPORT.md for disabled-strategies (#1830)
* Update doc in SUPPORT.md for disabled-strategies

For #1828 and #1721

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

* Update SUPPORT.md

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 04:26:56 +00:00
github-actions[bot]
6df132a9d5
dep: Upgrade transitive dependencies (#1837)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 03:34:19 +00:00
Jiahao XU
871e1eaf68
Fix 1.80 cargo clippy errors (#1834)
Fix 1.80 clippy lint errors

Fix 1.80 linting

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-25 15:10:59 +00:00
Jiahao XU
53f342ab1c
Enable vendored native-tls if native-tls and static is enabled (#1832)
Fixed #1694

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-25 02:25:43 +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]
09d61d081d
build(deps): bump openssl from 0.10.64 to 0.10.66 in the cargo group (#1829)
Bumps the cargo group with 1 update: [openssl](https://github.com/sfackler/rust-openssl).


Updates `openssl` from 0.10.64 to 0.10.66
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.64...openssl-v0.10.66)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 22:12:40 +00:00
github-actions[bot]
fbe6e4c83a
dep: Upgrade transitive dependencies (#1825)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-19 04:03:34 +00:00
Jiahao XU
eba07fb147
Fix v1 manifest format for git and local path (#1821)
* Bump simple-git to v0.2.10

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

* Fix v1 manifest format for git and local path

Fixed #1815

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

* Fix v1 format for custom registry

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

* Remove unused functions

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

* Fix compilation

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

* Update git.sh

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

* Fixed git.sh for windows

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

* fixx git.sh for win

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

* Update git.sh

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

* fix git.sh

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-07-17 05:34:12 +00:00
Jiahao XU
5a316b765f
Fix url link in README.md (#1820)
Fixed  #1819

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-15 14:10:12 +00:00
Kristof Mattei
fdfc89c287
fix: normalize GitHub URLs ending in .git to not ending in .git (#1804)
* fix: normalize GitHub URLs ending in .git to not ending in .git

* Refactor `Data::get_repo_info`

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

* Fix `get_repo_info` for repo with `.git` suffix

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

* Add e2e-tests to cover it

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

* Always try geting the redirected url

This would help:
 - redirect public gh repo `.git` to its canonical form
 - redirect public gh repo, which has been recently renamed
 - cases where redirection is needed to get the real repo

This commit make it fallbacks to the previou surl, if getting
the redirected url fail, in case the repository is private.

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

* Add more e2e-tests

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

* Optimize: Do not try redirect if gh_get_repo_info fail

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

* Minor refactor

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-14 14:45:41 +00:00
Jiahao XU
74af0e7f8a
Mark binstalk_manifests::cargo_crates_v1::CratesToml::insert private (#1818)
It uses a private type so it should not have public visibility.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-13 08:49:45 +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]
a92ad4952f
dep: Upgrade transitive dependencies (#1816)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-12 03:49:02 +00:00
Yuki Nagato
8705f1c345
Raspberry-pi (#1814)
* Get install script to work on raspberry pi

* cleanup
2024-07-11 03:36:58 +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]
928e28a51c
release: atomic-file-install v1.0.5 (#1812)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-06 05:06:54 +00:00
Jiahao XU
0a9f17f1ba
Speedup and prevent rate limit in gh-action.yml (#1811)
By passing github token

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-06 04:27:28 +00:00
github-actions[bot]
d401c48296
dep: Upgrade transitive dependencies (#1810)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-06 02:33:00 +00:00
dependabot[bot]
832834058d
build(deps): bump the deps group with 2 updates (#1808)
Bumps the deps group with 2 updates: [windows](https://github.com/microsoft/windows-rs) and [zstd](https://github.com/gyscos/zstd-rs).


Updates `windows` from 0.57.0 to 0.58.0
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/compare/0.57.0...0.58.0)

Updates `zstd` from 0.13.1 to 0.13.2
- [Release notes](https://github.com/gyscos/zstd-rs/releases)
- [Commits](https://github.com/gyscos/zstd-rs/compare/v0.13.1...v0.13.2)

---
updated-dependencies:
- dependency-name: windows
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: zstd
  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-07-06 02:06:54 +00:00
github-actions[bot]
bda3c7568b
dep: Upgrade transitive dependencies (#1807)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-05 04:47:12 +00:00
github-actions[bot]
a39cf031f9
dep: Upgrade transitive dependencies (#1802)
Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 03:40: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]
27e3b2672d
release: binstalk-fetchers v0.7.1 (#1797)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-23 12:14:44 +00:00
Jiahao XU
ac7bac651d
Run artifact discover in sequential instead of in parallel (#1796)
* Perform artifact discovery in sequential

Run different `fetcher.find()` in sequential

* FuturesResolver: Fallback to other future if one error

* Fix typo

* Apply cargo fmt

* Parallelise `<QuickInstall as Fetcher>::find`

Check for signature in parallel to the package

* Download signature in `<QuickInstall as Fetcher>::find`

So that the signature download can be done in parallel.

* Bump msrv for binstalk-fetchers to 1.70

* Update crates/binstalk-fetchers/src/futures_resolver.rs

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

* cargo fmt

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

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-06-23 10:42:03 +00:00
github-actions[bot]
ebdca1126e
dep: Upgrade transitive dependencies (#1794)
Co-authored-by: github-actions <github-actions@github.com>
2024-06-21 03:53:44 +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
Jiahao XU
1b21c1d468
Include instruction to install using homebrew (#1793)
* Include instruction to install using homebrew

cargo-binstall is now in homebrew-core, so update our REAMDE to reflect that!

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

* Update README.md

 - Fix typo
 - Add link to homebrew

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-20 10:12:26 +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
Jiahao XU
050c337da1
Fix typo in release-pr.yml inputs (#1790)
Stupid mistakes introduced in #1789

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-19 14:29:09 +00:00
Jiahao XU
45b25fede5
CI: Allow semver-check in release-pr.yml to be disabled via inputs (#1789)
In case buliding of previous version fail due to new releases in upstream.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-19 14:07:23 +00:00
dependabot[bot]
c49072c565
build(deps): bump cargo-bins/release-pr from 2.1.2 to 2.1.3 (#1788)
Bumps [cargo-bins/release-pr](https://github.com/cargo-bins/release-pr) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/cargo-bins/release-pr/releases)
- [Commits](https://github.com/cargo-bins/release-pr/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: cargo-bins/release-pr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 13:15:52 +00:00
Jiahao XU
374fc45b61
Bump cargo-bins/release-pr from 2.1.1 to 2.1.2 (#1787)
To reduce action output

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-19 08:48:47 +00:00
github-actions[bot]
9fdd1ad32a
release: binstalk-fetchers v0.7.0 (#1786)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-19 08:03:02 +00:00
github-actions[bot]
384789d1c9
release: binstalk-git-repo-api v0.3.0 (#1785)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-18 14:44:56 +00:00
github-actions[bot]
4bd5e79115
release: binstalk-downloader v0.11.5 (#1784)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-18 14:21:59 +00:00
Jiahao XU
ef7ca1ba9f
Re enable h3 in reqwest and remove impl Sync on returned Future in binstalk-git-repo-api (#1783)
* Upgrade transitive dependencies

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

* Re-enable h3

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

* Fix `binstalk-git-repo-api`

Remove `Sync` bound on returned `Future`, since `tokio::spawn` does not require it

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-18 13:30:23 +00:00
Jiahao XU
fc1117d0e4
Disable use of lld (#1782)
* Update justfile to use lld on macOS and Linux

When cargo-zigbuild is not used

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

* Delete .cargo/config.toml

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

* Update justfile to use lld as long as cargo-zigbuild isn't used

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

* Disable lld again

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-18 11:58:51 +00:00
github-actions[bot]
ee16116583
release: binstalk-downloader v0.11.4 (#1777)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 16:05:37 +00:00
Jiahao XU
3505b6ae5b
Fix docs.rs build of binstalk-downloader (#1776)
Fixed docs.rs build

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 15:39:14 +00:00
Jiahao XU
b9e8267cec
Speedup Linux CI (#1775)
* Speedup Linux CI

Use transparent huge page, according to https://kobzol.github.io/rust/rustc/2023/10/21/make-rust-compiler-5percent-faster.html it gives a nice 5% speedup

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

* Fix action.yml

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 15:08:25 +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
github-actions[bot]
08f66b0083
release: binstalk-fetchers v0.6.0 (#1772)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 06:36:08 +00:00
github-actions[bot]
ed31bc17e5
release: binstalk-git-repo-api v0.2.0 (#1771)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 06:02:41 +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
Jiahao XU
e3c8c40806
Run ci.yml every Monday (#1767)
Just to keep the cache hot while making sure cargo-binstall can compile on latest stable/nightly rust

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 01:32:07 +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