Commit graph

874 commits

Author SHA1 Message Date
github-actions[bot]
0e87113cc5
release: binstalk-registry v0.4.0 (#1521)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-12-11 23:54:34 +00:00
github-actions[bot]
f0bfa54944
release: simple-git v0.2.0 (#1520)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-12-11 22:37:04 +00:00
Jiahao XU
09debccace
freat: Avoid breaking changes due to gix upgrade (#1518)
Wrap all error type in a new type so that we don't have to release new
major versions after upgrading depoendency gix`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-12-11 14:08:13 +00:00
dependabot[bot]
b2ddd176e3
build(deps): bump the deps group with 2 updates (#1516)
Bumps the deps group with 2 updates: [tokio](https://github.com/tokio-rs/tokio) and [gix](https://github.com/Byron/gitoxide).


Updates `tokio` from 1.34.0 to 1.35.0
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.34.0...tokio-1.35.0)

Updates `gix` from 0.55.2 to 0.56.0
- [Release notes](https://github.com/Byron/gitoxide/releases)
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.55.2...gix-v0.56.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: gix
  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>
2023-12-09 01:29:41 +00:00
dependabot[bot]
c177fd2101
build(deps): bump the deps group with 1 update (#1511)
Bumps the deps group with 1 update: [command-group](https://github.com/watchexec/command-group).

- [Changelog](https://github.com/watchexec/command-group/blob/main/CHANGELOG.md)
- [Commits](https://github.com/watchexec/command-group/compare/v4.1.0...v5.0.1)

---
updated-dependencies:
- dependency-name: command-group
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: deps
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-25 04:00:15 +00:00
github-actions[bot]
05f90e651d
release: cargo-binstall v1.4.6 (#1508)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-18 10:57:12 +00:00
github-actions[bot]
3738f11f30
release: binstalk v0.18.1 (#1507)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-18 06:41:26 +00:00
github-actions[bot]
7e6223a8e2
release: binstalk-fetchers v0.2.2 (#1506)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-18 05:53:27 +00:00
github-actions[bot]
47d573fd2d
release: detect-targets v0.1.14 (#1504)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-18 05:20:55 +00:00
github-actions[bot]
7dfb617c95
release: binstalk-downloader v0.9.5 (#1505)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-18 04:50:46 +00:00
github-actions[bot]
cbabc33ccf
release: atomic-file-install v1.0.1 (#1503)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-18 04:37:08 +00:00
dependabot[bot]
a62f22050b
build(deps): bump the deps group with 4 updates (#1502)
Bumps the deps group with 4 updates: [windows](https://github.com/microsoft/windows-rs), [itertools](https://github.com/rust-itertools/itertools), [default-net](https://github.com/shellrow/default-net) and [windows-sys](https://github.com/microsoft/windows-rs).


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

Updates `itertools` from 0.11.0 to 0.12.0
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.11.0...v0.12.0)

Updates `default-net` from 0.20.0 to 0.21.0
- [Release notes](https://github.com/shellrow/default-net/releases)
- [Commits](https://github.com/shellrow/default-net/compare/v0.20.0...v0.21.0)

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

---
updated-dependencies:
- dependency-name: windows
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: default-net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: windows-sys
  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>
2023-11-18 03:04:12 +00:00
github-actions[bot]
aabe107726
release: fs-lock v0.1.2 (#1497)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-17 01:01:45 +00:00
Dawid Ciężarkiewicz
645579430a
feat(fs-lock): new_try_exclusive and new_try_shared (#1496)
In certain situations it's useful to attempt to lock the file.
2023-11-16 22:35:08 +00:00
github-actions[bot]
d345b2c14b
release: cargo-binstall v1.4.5 (#1492)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-12 10:59:27 +00:00
github-actions[bot]
5b8608d367
release: binstalk v0.18.0 (#1493)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-11 23:36:51 +00:00
github-actions[bot]
122e64ab25
release: binstalk-manifests v0.11.0 (#1484)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-11 18:53:10 +00:00
github-actions[bot]
86237aa611
release: binstalk-registry v0.3.0 (#1486)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-11 09:50:21 +00:00
github-actions[bot]
c874f2e0dc
release: binstalk-downloader v0.9.4 (#1485)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-11 08:05:41 +00:00
github-actions[bot]
6e974813f8
release: cargo-toml-workspace v3.0.0 (#1483)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-11-11 08:00:28 +00:00
dependabot[bot]
8dff97a0a2
build(deps): bump the deps group with 5 updates (#1482)
Bumps the deps group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.4.7` | `4.4.8` |
| [file-format](https://github.com/mmalecot/file-format) | `0.21.0` | `0.22.0` |
| [command-group](https://github.com/watchexec/command-group) | `3.0.0` | `4.1.0` |
| [toml_edit](https://github.com/toml-rs/toml) | `0.20.7` | `0.21.0` |
| [default-net](https://github.com/shellrow/default-net) | `0.19.0` | `0.20.0` |


Updates `clap` from 4.4.7 to 4.4.8
- [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.4.7...v4.4.8)

Updates `file-format` from 0.21.0 to 0.22.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.21.0...v0.22.0)

Updates `command-group` from 3.0.0 to 4.1.0
- [Changelog](https://github.com/watchexec/command-group/blob/main/CHANGELOG.md)
- [Commits](https://github.com/watchexec/command-group/compare/v3.0.0...v4.1.0)

Updates `toml_edit` from 0.20.7 to 0.21.0
- [Commits](https://github.com/toml-rs/toml/compare/v0.20.7...v0.21.0)

Updates `default-net` from 0.19.0 to 0.20.0
- [Release notes](https://github.com/shellrow/default-net/releases)
- [Commits](https://github.com/shellrow/default-net/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: file-format
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: command-group
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: deps
- dependency-name: toml_edit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: default-net
  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>
2023-11-11 06:32:43 +00:00
Jiahao XU
d76a40bf7d
Rm unnecessary warning msg "Failed to read git credential file" (#1479)
* Rm unnecessary warning msg "Failed to read git credential file"

Fixed #1476

If `gh auth token` executed successfully and binstall obtained a gh
token from it, then there's no reason to issue any warning msg.

Only when binstall cannot read from `.git-credential` and
`gh auth token` failed does binstall need to issue warning.

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

* Fix clippy warning

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-11-08 22:06:32 +00:00
dependabot[bot]
3414c4ee83
build(deps): bump the deps group with 3 updates (#1478)
Bumps the deps group with 3 updates: [command-group](https://github.com/watchexec/command-group), [default-net](https://github.com/shellrow/default-net) and [cargo_toml](https://gitlab.com/lib.rs/cargo_toml).


Updates `command-group` from 2.1.0 to 3.0.0
- [Changelog](https://github.com/watchexec/command-group/blob/main/CHANGELOG.md)
- [Commits](https://github.com/watchexec/command-group/compare/v2.1.0...v3.0.0)

Updates `default-net` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/shellrow/default-net/releases)
- [Commits](https://github.com/shellrow/default-net/compare/v0.18.0...v0.19.0)

Updates `cargo_toml` from 0.16.3 to 0.17.0
- [Commits](https://gitlab.com/lib.rs/cargo_toml/compare/v0.16.3...v0.17.0)

---
updated-dependencies:
- dependency-name: command-group
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: deps
- dependency-name: default-net
  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>
2023-11-04 01:44:22 +00:00
dependabot[bot]
b86bf5f2e1
build(deps): bump the deps group with 2 updates (#1475)
Bumps the deps group with 2 updates: [tracing-log](https://github.com/tokio-rs/tracing) and [toml_edit](https://github.com/toml-rs/toml).


Updates `tracing-log` from 0.1.4 to 0.2.0
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-log-0.1.4...tracing-log-0.2.0)

Updates `toml_edit` from 0.20.5 to 0.20.7
- [Commits](https://github.com/toml-rs/toml/compare/v0.20.5...v0.20.7)

---
updated-dependencies:
- dependency-name: tracing-log
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: toml_edit
  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-10-28 01:41:46 +00:00
github-actions[bot]
dc20cb7eb3
release: cargo-binstall v1.4.4 (#1473)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-22 13:29:59 +00:00
github-actions[bot]
61748689b3
release: binstalk-downloader v0.9.3 (#1471)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-22 12:20:39 +00:00
Jiahao XU
8efc19b3c3
dep: Update trust-dns-resolver v0.23.0 => hickory-resolver 0.24.0 (#1467)
It's renamed to hickory-resolver.

Also enabled new feature `hickory-resolver/dns-over-h3` if `rustls` is
enabled.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-10-20 11:48:46 +00:00
dependabot[bot]
4de2d0f49c
build(deps): bump the deps group with 6 updates (#1465)
Bumps the deps group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [tracing](https://github.com/tokio-rs/tracing) | `0.1.37` | `0.1.39` |
| [async-compression](https://github.com/Nullus157/async-compression) | `0.4.3` | `0.4.4` |
| [flate2](https://github.com/rust-lang/flate2-rs) | `1.0.27` | `1.0.28` |
| [zstd](https://github.com/gyscos/zstd-rs) | `0.12.4` | `0.13.0` |
| [default-net](https://github.com/shellrow/default-net) | `0.17.0` | `0.18.0` |
| [gix](https://github.com/Byron/gitoxide) | `0.54.1` | `0.55.2` |


Updates `tracing` from 0.1.37 to 0.1.39
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.39)

Updates `async-compression` from 0.4.3 to 0.4.4
- [Release notes](https://github.com/Nullus157/async-compression/releases)
- [Changelog](https://github.com/Nullus157/async-compression/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Nullus157/async-compression/compare/async-compression-v0.4.3...async-compression-v0.4.4)

Updates `flate2` from 1.0.27 to 1.0.28
- [Release notes](https://github.com/rust-lang/flate2-rs/releases)
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.27...1.0.28)

Updates `zstd` from 0.12.4 to 0.13.0
- [Release notes](https://github.com/gyscos/zstd-rs/releases)
- [Commits](https://github.com/gyscos/zstd-rs/compare/v0.12.4...v0.13.0)

Updates `default-net` from 0.17.0 to 0.18.0
- [Release notes](https://github.com/shellrow/default-net/releases)
- [Commits](https://github.com/shellrow/default-net/compare/v0.17.0...v0.18.0)

Updates `gix` from 0.54.1 to 0.55.2
- [Release notes](https://github.com/Byron/gitoxide/releases)
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.54.1...gix-v0.55.2)

---
updated-dependencies:
- dependency-name: tracing
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: async-compression
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: flate2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: deps
- dependency-name: zstd
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: default-net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: gix
  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>
2023-10-14 10:01:27 +00:00
dependabot[bot]
449a3973d9
build(deps): bump tracing-core from 0.1.31 to 0.1.32 (#1461)
Bumps [tracing-core](https://github.com/tokio-rs/tracing) from 0.1.31 to 0.1.32.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-core-0.1.31...tracing-core-0.1.32)

---
updated-dependencies:
- dependency-name: tracing-core
  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>
2023-10-14 02:12:29 +00:00
Félix Saparelli
3cf76cd0a9
Downgrade DNS info! to debug! (#1454)
* Downgrade DNS info! to debug!

* Update resolver.rs
2023-10-10 05:51:55 +00:00
github-actions[bot]
e47b908a05
release: cargo-binstall v1.4.3 (#1452)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-08 08:21:00 +00:00
github-actions[bot]
3b42aa3d0f
release: binstalk v0.17.1 (#1449)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 22:52:35 +11:00
github-actions[bot]
6f6426c247
release: binstalk-fetchers v0.2.1 (#1448)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 08:39:55 +00:00
github-actions[bot]
113e9d40a3
release: binstalk-downloader v0.9.2 (#1447)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 07:50:55 +00:00
github-actions[bot]
71764ca62c
release: binstalk-types v0.6.1 (#1446)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 07:08:48 +00:00
github-actions[bot]
274a1975eb
release: fs-lock v0.1.1 (#1443)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 06:10:11 +00:00
github-actions[bot]
45518cb65e
release: detect-targets v0.1.13 (#1444)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 06:10:03 +00:00
github-actions[bot]
39d22510b6
release: simple-git v0.1.1 (#1445)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-10-07 06:09:58 +00:00
dependabot[bot]
49592890f9
build(deps): bump the deps group with 2 updates (#1441)
Bumps the deps group with 2 updates: [fs4](https://github.com/al8n/fs4-rs) and [proc-macro2](https://github.com/dtolnay/proc-macro2).


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

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

---
updated-dependencies:
- dependency-name: fs4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: proc-macro2
  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-10-07 02:02:23 +00:00
Jiahao XU
ceba74870e
Fix clippy errors in cargo v1.73.0 (#1439)
It actually improves the quality of our code!

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-10-06 12:10:42 +00:00
Sculas
af04e45b5a
feat: logging for DNS resolver (also fixes #1417) (#1436)
* feat: logging for dns resolver

* refactor: fix clippy warnings

* refactor: actually fix clippy warnings

* refactor: apply requested changes
2023-10-05 11:00:07 +00:00
dependabot[bot]
59963c712f
build(deps): bump the deps group with 2 updates (#1433)
Bumps the deps group with 2 updates: [file-format](https://github.com/mmalecot/file-format) and [gix](https://github.com/Byron/gitoxide).


Updates `file-format` from 0.20.0 to 0.21.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.20.0...v0.21.0)

Updates `gix` from 0.53.1 to 0.54.1
- [Release notes](https://github.com/Byron/gitoxide/releases)
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.53.1...gix-v0.54.1)

---
updated-dependencies:
- dependency-name: file-format
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
- dependency-name: gix
  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>
2023-09-30 14:08:07 +00:00
Jiahao XU
a69beccf1a
Bump dep trust-dns-reslver to v0.23.0 (#1432)
* Bump dep trust-dns-reslver to v0.23.0

Since we no longer enables `reqwest/trust-dns-resolver` anymore, we
don't need to keep this dependency is sync with upstream `reqwest`.

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

* Fix compilation

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-30 01:12:27 +00:00
Jiahao XU
8e08c65946
Fix fallback to cargo-install: Use the default target unless user override (#1430)
* Fix fallback to `cargo-install`: Use the default target

which is guaranteed to work, instead of providing a custom `--target`
from `detect-targets`.

The one from `detect-targets` might report musl even if the `rustc`
reports gnu, since OSes like NixOS could use a custom glibc location
that prevent glibc binaries built for other OSes be run for them.

However, if we are compiling the crate and `rustc` defaults to glibc,
then it should be guaranteed to work.

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

* Impl fn `DesiredTargets::get_initialized`

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

* Fix fallback to `cargo-install`: Use user-provided override targets

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-30 00:22:21 +00:00
Jiahao XU
b56a8c3579
Fix detect-targets glibc detection (#1421)
* Fix `detect-targets` glibc detection

Fixed #1420

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

* Fix `detect-targets` glibc detection for Fedora

Fedora 37-39 has glibc installed in `/lib64` and `/usr/lib64` instead of
`/lib` or `/usr/lib`.

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

* Improve caching in `detect-targets-alpine-test`

Make sure it reuses cached artifacts instead of recompiling everything.

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

* Mv `test-detect-targets-musl.sh` into `.github/scripts/`

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

* Refactor `ci.yml`: Extract new job `detect-targets-build`

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

* FIx `detect-targets-ubuntu-test`

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

* Avoid building the entire workspacein `detect-targets-build`

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

* Fix `detect-targets-*-test`: `chmod +x detect-targets`

Also fixed testing on Alpine, to make sure it exits with status 1 on
assertion failure.

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

* Fix typo

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

* Cache all crates in `detect-targets-build`

Since `detect-targets` rarely changes and is quite small, it is also
reasonable to cache it.

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

* Add job `detect-targets-more-glibc-test`

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

* Add `detect-targets-nix-test`

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

* Fix `detect-targets-nix-test` executing `detect-targets`

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

* Fix workflow: Add all `detect-targets-*` jobs to be dep of `tests-pass`

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-29 23:46:03 +00:00
github-actions[bot]
6ce60225d4
release: cargo-binstall v1.4.2 (#1418)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-09-28 02:59:25 +00:00
github-actions[bot]
4344148566
release: binstalk-downloader v0.9.1 (#1416)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-09-27 22:31:01 +00:00
Jiahao XU
b73c253275
Fix GhApiClient: Accept any auth_token given (#1415)
Fixed #1414

There are many different kinds of gh tokens and they can change the
format at anytime, so we can't check it based on its formats.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-27 12:02:42 +00:00
github-actions[bot]
e41db2a297
release: cargo-binstall v1.4.1 (#1406)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2023-09-26 23:42:26 +00:00
Félix Saparelli
216d548fd4
Use explicit write permissions (#1404)
* Use explicit write permissions

* Revert "release: cargo-binstall v1.4.1 (#1403)"

This reverts commit 00941d8b43.
2023-09-26 21:57:51 +00:00