Commit graph

2094 commits

Author SHA1 Message Date
Patrick José Pereira
44b388c9fd
install-from-binstall-release: Add user-agent into curl (#1956)
It appears that github API now enforces the user-agent

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-11-05 10:44:09 +00:00
Patrick José Pereira
ecbd4fdff1
install-from-binstall-release: Add BINSTALL_VERSION (#1955)
This allow the users to choose different versions of cargo-binstall

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-11-05 10:42:22 +00:00
dependabot[bot]
4bf3685328
build(deps): bump the deps group with 3 updates (#1954)
Bumps the deps group with 3 updates: [thiserror](https://github.com/dtolnay/thiserror), [url](https://github.com/servo/rust-url) and [fs4](https://github.com/al8n/fs4-rs).


Updates `thiserror` from 1.0.66 to 1.0.68
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.66...1.0.68)

Updates `url` from 2.5.2 to 2.5.3
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.5.2...v2.5.3)

Updates `fs4` from 0.10.0 to 0.11.0
- [Release notes](https://github.com/al8n/fs4-rs/releases)
- [Commits](https://github.com/al8n/fs4-rs/commits)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: url
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: fs4
  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-11-05 10:36:13 +00:00
Jiahao XU
04d28b1f5c
CI: Fix just-setup (#1957)
* Fix just-setup

 - install rust toolchain before calling install-action, just in case there's no available binary
 - configure THP/malloc at the start of action

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

* Fix rust installation

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

* Fix target passed to install-action

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

* Add missing shell

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

* Fix typo

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

* Fix passing target to install-action

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

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-11-05 10:30:30 +00:00
github-actions[bot]
2c1f156332
release: cargo-binstall v1.10.10 (#1951)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-11-02 02:45:51 +00:00
github-actions[bot]
8644e54e84
chore: release (#1944)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-02 01:25:13 +00:00
Jiahao XU
a944df0498
Improve UI orompt for installation (#1950)
Fixed #1943

The UI now looks like

```
WARN The package cargo-binstall v1.10.9 (aarch64-apple-darwin) has been downloaded from github.com
INFO This will install the following binaries:
INFO   - cargo-binstall => /tmp/e/bin/cargo-binstall
````

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-11-02 00:52:37 +00:00
github-actions[bot]
48f8cf9b86
dep: Upgrade transitive dependencies (#1949)
Co-authored-by: github-actions <github-actions@github.com>
2024-11-01 07:23:52 +00:00
pepa65
81a8218794
Yes/NO defaults to "no" when just enter is pressed (#1948)
* yes/NO in interface

* Implement No as default (when only Enter is pressed)

* Update README.md

Mark the default as [yes]

Signed-off-by: pepa65 <pepa65@passchier.net>

* Update ui.rs

Mark the default as [yes]

Signed-off-by: pepa65 <pepa65@passchier.net>

* Update ui.rs

Do not break on yes/y/YES/Y/"", break on no/n/NO/N, and keep asking otherwise

Signed-off-by: pepa65 <pepa65@passchier.net>

* Update ui.rs

After testing empty didn't work correctly

Signed-off-by: pepa65 <pepa65@passchier.net>

---------

Signed-off-by: pepa65 <pepa65@passchier.net>
2024-10-30 13:00:56 +00:00
Jiahao XU
e704abe7ac
Use rc-zip-sync for zip extraction (#1942)
* Use rc-zip-sync for zip extraction

Fixed #1080

In this commit, binstalk-downloader is updated to
- first download the zip into a temporary file, since
  there is no correct way to extract zip from a stream.
- then use rc-zip-sync to read from the zip and extract
  it to filesystem.

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

* Fix returned `ExtractedFiles` in `do_extract_zip`

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

* Fix clippy in zip_extraction.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-10-30 00:16:54 +00:00
github-actions[bot]
c16790a16f
release: cargo-binstall v1.10.9 (#1941)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-10-26 02:51:55 +00:00
github-actions[bot]
afd20e9396
chore: release (#1937)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-26 01:49:47 +00:00
github-actions[bot]
a284b4e69e
dep: Upgrade transitive dependencies (#1940)
Co-authored-by: github-actions <github-actions@github.com>
2024-10-25 12:36:08 +00:00
github-actions[bot]
92a022bad4
dep: Upgrade transitive dependencies (#1936)
Co-authored-by: github-actions <github-actions@github.com>
2024-10-18 07:36:53 +00:00
Jiahao XU
a85dc994eb
CI: Run ci.yml on every Sat (#1934)
Make sure we have up-to-date cache.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-10-13 00:50:57 +00:00
github-actions[bot]
4675f622c9
release: cargo-binstall v1.10.8 (#1931)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-10-13 00:45:03 +00:00
github-actions[bot]
731592f357
chore: release (#1933)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-12 15:08:00 +00:00
PukNgae Cryolitia
5069cb6638
fix(gh_api_client): remote client should never being shared everywhere bacause the underlying connection pool will be reused. (#1930)
The client pool contains connections associated with a runtime when the runtime closes, the client may panic at seeing the connection disappear "abruptly".

Reported-by: https://archriscv.felixc.at/.status/log.htm?url=logs/cargo-binstall/cargo-binstall-1.8.0-1.log
Link: https://github.com/seanmonstar/reqwest/issues/1148
2024-10-12 12:32:04 +00:00
Jiahao XU
61c9231401
CI: Fix binstalk-git-repo-api on PR of forks (#1932)
* Rm CI_UNIT_TEST_GITHUB_TOKEN fallback for unit-tests

As it would break unit testing

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

* CI: Fix gh_api_client.rs test

Ignore empty gh token

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

* Update crates/binstalk-git-repo-api/src/gh_api_client.rs

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

* Update crates/binstalk-git-repo-api/src/gh_api_client.rs

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

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-10-12 10:12:53 +00:00
github-actions[bot]
a8227ae6a4
chore: release (#1928)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-12 03:58:24 +00:00
dependabot[bot]
e7f98b2a3d
build(deps): bump fs4 from 0.9.1 to 0.10.0 in the deps group (#1929)
Bumps the deps group with 1 update: [fs4](https://github.com/al8n/fs4-rs).


Updates `fs4` from 0.9.1 to 0.10.0
- [Release notes](https://github.com/al8n/fs4-rs/releases)
- [Commits](https://github.com/al8n/fs4-rs/commits/0.10.0)

---
updated-dependencies:
- dependency-name: fs4
  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-10-12 01:46:19 +00:00
github-actions[bot]
2a7634c909
dep: Upgrade transitive dependencies (#1927)
Co-authored-by: github-actions <github-actions@github.com>
2024-10-11 08:37:06 +00:00
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]
f80bf0ccf7
dep: Upgrade transitive dependencies (#1925)
Co-authored-by: github-actions <github-actions@github.com>
2024-10-04 10:27:53 +00:00
github-actions[bot]
d05a8d0cc0
dep: Upgrade transitive dependencies (#1923)
Co-authored-by: github-actions <github-actions@github.com>
2024-09-27 04:10:45 +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]
e3321fbac5
dep: Upgrade transitive dependencies (#1919)
Co-authored-by: github-actions <github-actions@github.com>
2024-09-20 10:30:53 +00:00
github-actions[bot]
b296b4e92e
dep: Upgrade transitive dependencies (#1915)
Co-authored-by: github-actions <github-actions@github.com>
2024-09-13 09:08:21 +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
Jiahao XU
a88335d05b
Improve quickinstall telemetry failure message (#1910)
Fixed #1896

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-09-08 04:20:04 +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
github-actions[bot]
04978e949e
dep: Upgrade transitive dependencies (#1907)
Co-authored-by: github-actions <github-actions@github.com>
2024-09-06 12:55:55 +00:00
github-actions[bot]
659ad8172f
dep: Upgrade transitive dependencies (#1906)
Co-authored-by: github-actions <github-actions@github.com>
2024-09-06 09:05:08 +00:00
Jiahao XU
a53d51c083
Send telemetry report to quickinstall if no pre-built is found (#1905)
* Send telemetry report to quickinstall if no pre-built is found

quickinstall telemtry is overloaded cargo-bins/cargo-quickinstall#268, it only needs report when the pre-built is not available in upstream.

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

* Fix resolve.rs

And optimize sending telemtry: Remove unnecessary `<Arc as Clone>::clone`

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

* Fix fmt of resolve.rs

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

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-09-05 14:43:38 +00:00
dependabot[bot]
e4bbbff1fd
build(deps): bump quinn-proto from 0.11.6 to 0.11.8 in the cargo group (#1904)
Bumps the cargo group with 1 update: [quinn-proto](https://github.com/quinn-rs/quinn).


Updates `quinn-proto` from 0.11.6 to 0.11.8
- [Release notes](https://github.com/quinn-rs/quinn/releases)
- [Commits](https://github.com/quinn-rs/quinn/compare/quinn-proto-0.11.6...quinn-proto-0.11.8)

---
updated-dependencies:
- dependency-name: quinn-proto
  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-09-04 00:39:25 +00:00
github-actions[bot]
8e9ef12ec8
dep: Upgrade transitive dependencies (#1901)
Co-authored-by: github-actions <github-actions@github.com>
2024-08-30 09:19:41 +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
Jiahao XU
069afedf19
Speedup ci: Exclude workspace from macOS SIP and windows defenders (#1899)
* Enable macOS dev mode in CI

to speedup CI

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

* Enable dev drive on windows to speedup CI

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

* Use dev drive for target

which is the most write-heavy part.

The read to the workspace can be cached as it is really small

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

* Setup dev drive for cargo/rust home

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

* Exclude target, cargo/rustup home from windows defender

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

* Exclude the entire workspace from

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

* Fix action.yml

Add missing shell, and merge steps for adding windows defender exclusion

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

* Fix adding windows defender exclusion path

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

* Fix use of Add-MpPreference

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

* Fix pwsh

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

* Fix creating second dev drive

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

* Fix second dev drive setup

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

* Fix caching: Do not mount dev drive at target

Since it contains files that are not accessible.

Also remove use of dev drive for cargo/rustup home since it prevents caching (rust-cache does not read from env).

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

* Disable dev drive for windows as a failed experiment

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

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-25 12:15:41 +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
github-actions[bot]
5ae11b35d7
dep: Upgrade transitive dependencies (#1897)
Co-authored-by: github-actions <github-actions@github.com>
2024-08-25 07:55:45 +00:00
dependabot[bot]
50bee16581
build(deps): bump tj-actions/changed-files from 44 to 45 (#1893)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 44 to 45.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v44...v45)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 03:22:31 +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
Jiahao XU
6cb09fd1e2
Add link for all supported pkg-fmt in SUPPORT.md (#1887)
* Add link for all supported pkg-fmt in SUPPORT.md

Fix #1885

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

* Update SUPPORT.md

Co-authored-by: pinage404 <pinage404@gmail.com>
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: pinage404 <pinage404@gmail.com>
2024-08-16 22:57:12 +00:00