cargo-binstall/crates
Jiahao XU 76a692224d
Fix detect-targets on Linux and add CI testing (#1344)
* Testing: Add `detect-targets/src/main.rs`

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

* Fix `detect-targets` linux: `guess_host_triple` could return wrong libc info

so it has to check it manually instead of simply providing alternatives
like other OSes.

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

* Fix `get_ld_flavor` for Alpine's gcompat glibc

Its output is different from regular glibc, so we need to hardcode that
particular cases.

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

* Fix detection of alpine specific musl target

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

* Add ci testing for Alpine

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

* Add CI test for detect-targets on ubuntu

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

* Refactor `get_ld_flavor`

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

* Fix shellcheck

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

* Add more CI test for ubuntu

and fixed typo in it

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

* Rm distro specific target as it breaks `cargo-install` fallback

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

* Make sure all binaries are built in CI

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

* Add `package.metadata.binstall` for `detect-targets`

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

* Fix justfile

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

* Fix `detect-targets-{alpine, ubuntu}-test`

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

* Fix `detect-targets-ubuntu-test`

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

* Fix `debug-targets-ubuntu-test`

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

* `set -exuo pipefail` in `detect-targets-ubuntu-test`

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

* Simplify `detect-targets-*-test`: Use `Swatinem/rust-cache@v2` directly

instead of using `just-setup`

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

* Rm dup steps in `detect-targets-ubuntu-test`

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

* Add `ls` to detect-targets-alpine-test for debugging

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

* FIx `detect-targets-alpine-test`

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

* Fix `get_ld_flavor`

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

* Fix `linux::detect_targets` on ubuntu & glibc system

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

* FIx `linux::detect_targets` glibc checking

Check dynlib suffix

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-06 14:17:43 +00:00
..
atomic-file-install release: atomic-file-install v1.0.0 (#1305) 2023-08-19 04:50:39 +00:00
bin feat: Improve resolution logging and verbose logging (#1341) 2023-09-02 09:38:24 +00:00
binstalk feat: Improve resolution logging and verbose logging (#1341) 2023-09-02 09:38:24 +00:00
binstalk-bins release: binstalk-bins v0.1.0 (#1319) 2023-08-24 07:57:10 +00:00
binstalk-downloader feat: Add more logging to binstalk-{downloader, registry} (#1340) 2023-09-02 09:38:27 +00:00
binstalk-fetchers release: binstalk-fetchers v0.1.0 (#1322) 2023-08-24 10:24:07 +00:00
binstalk-manifests release: binstalk-manifests v0.8.1 (#1317) 2023-08-24 05:30:01 +00:00
binstalk-registry feat: Add more logging to binstalk-{downloader, registry} (#1340) 2023-09-02 09:38:27 +00:00
binstalk-types release: binstalk-types v0.5.0 (#1175) 2023-06-26 12:27:56 +00:00
cargo-toml-workspace release: cargo-toml-workspace v1.0.0 (#1306) 2023-08-19 04:51:04 +00:00
detect-targets Fix detect-targets on Linux and add CI testing (#1344) 2023-09-06 14:17:43 +00:00
detect-wasi Bump tempfile from 3.4.0 to 3.5.0 (#967) 2023-03-30 02:49:38 +00:00
fs-lock Bump fs4 from 0.6.4 to 0.6.5 (#1112) 2023-06-01 04:02:01 +00:00
leon Fix clippy lint and format (#1328) 2023-08-25 08:53:50 +00:00
leon-macros release: leon v2.0.1 (#1172) 2023-06-26 05:10:30 +00:00
normalize-path release: normalize-path v0.2.1 (#1173) 2023-06-26 08:22:39 +00:00
simple-git release: simple-git v0.1.0 (#1318) 2023-08-24 05:29:13 +00:00