github-actions[bot]
b243c176fe
chore: release ( #2073 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-07 13:49:46 +00:00
Jiahao XU
a8daf8eb3b
Use bzip2/libbz2-rs-sys ( #2071 )
...
Also upgrade rc-zip-sync so that it uses bzip the same major version
v0.5.2 as our crate, so that it doesn't pull in c bzip and rust bzip
at the same time.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-04 13:20:35 +00:00
dependabot[bot]
d9da8aaba4
build(deps): bump the deps group with 3 updates ( #2072 )
...
Release-plz / Release-plz (push) Has been cancelled
* build(deps): bump the deps group with 3 updates
Bumps the deps group with 3 updates: [compact_str](https://github.com/ParkMyCar/compact_str ), [bzip2](https://github.com/trifectatechfoundation/bzip2-rs ) and [fs4](https://github.com/al8n/fs4-rs ).
Updates `compact_str` from 0.8.1 to 0.9.0
- [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ParkMyCar/compact_str/compare/v0.8.1...v0.9.0 )
Updates `bzip2` from 0.5.1 to 0.5.2
- [Release notes](https://github.com/trifectatechfoundation/bzip2-rs/releases )
- [Commits](https://github.com/trifectatechfoundation/bzip2-rs/compare/v0.5.1...v0.5.2 )
Updates `fs4` from 0.12.0 to 0.13.0
- [Release notes](https://github.com/al8n/fs4-rs/releases )
- [Changelog](https://github.com/al8n/fs4-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/al8n/fs4-rs/commits )
---
updated-dependencies:
- dependency-name: compact_str
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: bzip2
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>
* Fix use of fs4::fs_std::FileExt::try_lock*
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-03-01 07:11:06 +00:00
github-actions[bot]
708a489062
chore: release ( #2067 )
...
Release-plz / Release-plz (push) Waiting to run
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-28 11:55:33 +00:00
Jiahao XU
712ad730a6
Use flate2/zlib-rs for dev/release build ( #2068 )
...
* Add feature zlib-rs to binstalk-downloader
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Add feature zlib-rs to binstalk
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Add feature zlib-rs to cargo-binstall
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Enable zlib-rs for CI build pipeline
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-28 09:08:34 +00:00
github-actions[bot]
8a18d5f024
chore: release ( #2040 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-11 16:10:36 +00:00
Jiahao XU
9b8ba9902d
Upgrade hickory-resolver to 0.25.0-alpha.5 ( #2038 )
...
* Upgrade hickory-resolver to 0.25.0-alpha.5
Update dependencies
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix compilation for hickory-resolver
Cleanup use of removed feature
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Pin hickory-resolver to avoid breakage
Cargo considers 0.25.0-alpha.* to be compatible while they can contain breaking changes between alpha versions.
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-11 09:54:04 +00:00
github-actions[bot]
a3f88b5cbf
chore: release ( #2031 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-04 21:30:08 +00:00
Félix Saparelli
8dd91862fb
feat(downloader): allow remote::Client to be customised ( #2035 )
...
This is for usage outside of binstall itself.
Sometimes it's useful to be able to specify more reqwest options, such as doing custom DNS resolution. This leaves the existing API identical but adds a couple methods that make it possible to construct a client with custom options.
Signed-off-by: Félix Saparelli <felix@passcod.name>
2025-02-04 11:30:31 +00:00
github-actions[bot]
bd6f0c6b14
chore: release ( #2027 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-19 02:58:41 +00:00
github-actions[bot]
9d2dbb3dff
chore: release ( #2023 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-13 13:41:19 +00:00
github-actions[bot]
c6a51aaf3e
chore: release ( #2014 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-11 04:00:58 +00:00
dependabot[bot]
fa7478ca78
build(deps): bump the deps group with 3 updates ( #2015 )
...
Bumps the deps group with 3 updates: [windows](https://github.com/microsoft/windows-rs ), [log](https://github.com/rust-lang/log ) and [thiserror](https://github.com/dtolnay/thiserror ).
Updates `windows` from 0.58.0 to 0.59.0
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/compare/0.58.0...0.59.0 )
Updates `log` from 0.4.22 to 0.4.24
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.22...0.4.24 )
Updates `thiserror` from 2.0.10 to 2.0.11
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.10...2.0.11 )
---
updated-dependencies:
- dependency-name: windows
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: log
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>
2025-01-11 02:20:03 +00:00
github-actions[bot]
158fb2fb14
chore: release ( #2009 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-04 02:16:37 +00:00
dependabot[bot]
b491e5e81d
build(deps): bump the deps group with 2 updates ( #2010 )
...
Bumps the deps group with 2 updates: [itertools](https://github.com/rust-itertools/itertools ) and [async-trait](https://github.com/dtolnay/async-trait ).
Updates `itertools` from 0.13.0 to 0.14.0
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.13.0...v0.14.0 )
Updates `async-trait` from 0.1.83 to 0.1.84
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.83...0.1.84 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: async-trait
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>
2025-01-04 01:46:19 +00:00
github-actions[bot]
7604d8d286
chore: release ( #1996 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-14 05:14:05 +00:00
dependabot[bot]
299c771d8f
build(deps): bump the deps group with 2 updates ( #1997 )
...
Bumps the deps group with 2 updates: [thiserror](https://github.com/dtolnay/thiserror ) and [bzip2](https://github.com/trifectatechfoundation/bzip2-rs ).
Updates `thiserror` from 2.0.6 to 2.0.7
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.6...2.0.7 )
Updates `bzip2` from 0.4.4 to 0.5.0
- [Release notes](https://github.com/trifectatechfoundation/bzip2-rs/releases )
- [Commits](https://github.com/trifectatechfoundation/bzip2-rs/compare/0.4.4...v0.5.0 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
- dependency-name: bzip2
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-12-14 02:14:33 +00:00
github-actions[bot]
d0e37e3ce9
chore: release ( #1980 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-23 03:46:10 +00:00
dependabot[bot]
2f84637d23
build(deps): bump the deps group with 2 updates ( #1981 )
...
Bumps the deps group with 2 updates: [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource ) and [url](https://github.com/servo/rust-url ).
Updates `embed-resource` from 2.5.1 to 3.0.1
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases )
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v2.5.1...v3.0.1 )
Updates `url` from 2.5.3 to 2.5.4
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.5.3...v2.5.4 )
---
updated-dependencies:
- dependency-name: embed-resource
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: deps
- dependency-name: url
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-11-23 02:17:23 +00:00
github-actions[bot]
3677ac112d
chore: release ( #1965 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-09 07:22:29 +00:00
dependabot[bot]
02ca607932
build(deps): bump the deps group with 3 updates ( #1966 )
...
* build(deps): bump the deps group with 3 updates
Bumps the deps group with 3 updates: [file-format](https://github.com/mmalecot/file-format ), [thiserror](https://github.com/dtolnay/thiserror ) and [hickory-resolver](https://github.com/hickory-dns/hickory-dns ).
Updates `file-format` from 0.25.0 to 0.26.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.25.0...v0.26.0 )
Updates `thiserror` from 1.0.68 to 2.0.1
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.68...2.0.1 )
Updates `hickory-resolver` from 0.25.0-alpha.2 to 0.25.0-alpha.3
- [Release notes](https://github.com/hickory-dns/hickory-dns/releases )
- [Changelog](https://github.com/hickory-dns/hickory-dns/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hickory-dns/hickory-dns/compare/v0.25.0-alpha.2...v0.25.0-alpha.3 )
---
updated-dependencies:
- dependency-name: file-format
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: deps
- dependency-name: hickory-resolver
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix import in resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix get_configs() in resolver.rs on Windows
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-11-09 03:47:05 +00:00
github-actions[bot]
674f04f95f
chore: release ( #1958 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-05 12:18:49 +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
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
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]
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
Jiahao XU
a8eea5bc72
Enable happy eyeballs when using hickory-dns ( #1877 )
...
* Enable happy eyeballs when using hickory-dns
Ported from seanmonstar/reqwest#2378
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix imports in resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix fmt in resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix fmt in resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix import on windows in resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-11 07:26:09 +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
96f5445e52
dep: Bump hickory-resolver to 0.25.0-alpha.2 ( #1869 )
...
* dep: Bump hickory-resolver to 0.25.0-alpha.2
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Remove workaround for ring 0.16 on aarc64-pc-windows-msvc
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-08-10 04:31:24 +00:00
github-actions[bot]
78f26622b2
release: binstalk-downloader v0.12.0 ( #1842 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 09:11:23 +00:00
github-actions[bot]
58d638726b
release: binstalk-types v0.8.0 ( #1841 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 08:37:08 +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
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
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]
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
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
github-actions[bot]
b71b3ce472
release: binstalk-downloader v0.11.3 ( #1759 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 12:38: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]
f567e3bd9e
release: binstalk-downloader v0.11.2 ( #1739 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 02:54:38 +00:00
Jiahao XU
4687726c66
Improve derbugg logging ( #1738 )
...
* Improve derbugg logging
Make it more readable
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix excessive logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-13 00:25:24 +10:00
github-actions[bot]
9a0367b3ec
release: binstalk-downloader v0.11.1 ( #1726 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-11 13:31:35 +00:00
Jiahao XU
238e0f6318
Fix rate limit checking in GhApiClient
( #1725 )
...
* Fix rate limit checking in `GhApiClient`
- Mv logic into `binstalk_downloader`
- Check for `RETRY_AFTER` and `x-ratelimit-remaining` on any status code
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lint
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-11 22:37:48 +10:00
github-actions[bot]
5bcc243741
release: binstalk-downloader v0.11.0 ( #1722 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-06-10 08:11:05 +00:00
Jiahao XU
1dbd2460a3
Support private github repository ( #1690 )
...
* Refactor: Create new crate binstalk-git-repo-api
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix CI lint warnings
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `just check`: Rm deleted features from `cargo-hack` check
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Extract new mod error
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Ret artifact url in `has_release_artifact`
So that we can use it to download from private repositories.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Move `test_graph_ql_error_type` to mod `error`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix running `cargo test` in `binstalk-git-repo-api``
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Remove unnecessary import in mod `error::test`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rename mod `request`` to `release_artifacts`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl draft version of fetching repo info
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Move `HasReleaseArtifacts` failure variants into `GhApiError`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Use `GhRepo` in `GhRelease`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Return `'static` future
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Make sure `'static` Future is returned
To make it easier to create generic function
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add logging to unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Extract new fn `GhApiClient::do_fetch`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rm unused `percent_encode_http_url_path`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `cargo test` run on CI
`cargo test` run all tests in one process.
As such, `set_global_default` would fail on the second call.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Optimize `GhApiClient::do_fetch`: Avoid unnecessary restful API call
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Rm param `auth_token` for restful API fn
which is always set to `None`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl new API `GhApiClient::get_repo_info`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix unit test for `GhApiClient::get_repo_info`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor testing: Parameter-ize testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Parallelise `test_get_repo_info`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Create parameter-ised `test_has_release_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Parallelize `test_has_release_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: `gh_api_client::test::create_client` shall not be `async`
as there is no `.await` in it.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Return `Url` in `GhApiClient::has_release_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl new API `GhApiClient::download_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Remove unused deps added to binstalk-git-repo-api
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lints
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add new API `GhApiClient::remote_client`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add `GhApiClient::has_gh_token`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add `GhRepo::try_extract_from_url`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rename `ReleaseArtifactUrl` to `GhReleaseArtifactUrl`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add new fn `Download::with_data_verifier`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* feature: Support private repository
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lints
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add e2e-test/private-github-repo
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lints
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `launch_baseline_find_tasks`: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix test failure: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Temporarily enable debug output for e2e-test-private-github-repo
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `get_repo_info`: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Improve `debug!` logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more debug logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more debugging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more debug logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Apply suggestions from code review
* Fix compilation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix cargo fmt
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add crate binstalk-git-repo-api to release-pr.yml
* Update crates/binstalk-git-repo-api/Cargo.toml
* Apply suggestions from code review
* Update crates/binstalk/Cargo.toml
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-10 06:02:12 +00:00
dependabot[bot]
45307909c3
build(deps): bump the deps group with 2 updates ( #1704 )
...
Bumps the deps group with 2 updates: [itertools](https://github.com/rust-itertools/itertools ) and [thiserror](https://github.com/dtolnay/thiserror ).
Updates `itertools` from 0.12.1 to 0.13.0
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.1...v0.13.0 )
Updates `thiserror` from 1.0.60 to 1.0.61
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.60...1.0.61 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
update-type: version-update:semver-minor
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>
2024-05-18 03:28:12 +00:00
github-actions[bot]
bf077e1e3a
release: binstalk-downloader v0.10.3 ( #1684 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-03 00:19:19 +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
github-actions[bot]
d515e11a8b
release: binstalk-downloader v0.10.2 ( #1675 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-02 09:08:24 +00:00