cargo-binstall/crates/bin
Jiahao XU 8a08cdda6f
Fix GitHub token auto discovery (#1335)
* Fix GitHub token auto discovery

Fixed #1333

 - Rm dep `gh-token` since it is broken and we can simply run
   `gh auth token` in `cargo-binstall` instead.
 - binstalk-downloader: Make sure GitHub token is at least 40B long
   and other than the `_`, composes of only alphanumeric characters.
 - Warn on failure to read `git/credential` files
 - Optimize `try_from_home` to avoid heap allocation of `PathBuf`

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

* Fix typo and clippy

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

* Simplify `is_valid_gh_token` & `is_ascii_alphanumeric` impl

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

* Improve err msg in `get_inner`

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

* Improve err msg of `cargo_binstall::gh_token::get`

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-01 01:14:59 +00:00
..
src Fix GitHub token auto discovery (#1335) 2023-09-01 01:14:59 +00:00
build.rs feat: Support --verbose --version/-vV (#1182) 2023-07-18 05:22:41 +00:00
Cargo.toml Fix GitHub token auto discovery (#1335) 2023-09-01 01:14:59 +00:00
LICENSE Split crates and clean up structure of codebase (#294) 2022-08-20 11:24:12 +00:00
manifest.rc Split crates and clean up structure of codebase (#294) 2022-08-20 11:24:12 +00:00
release.toml Fix release PR template (#336) 2022-09-04 15:19:17 +00:00
windows.manifest release: cargo-binstall v1.3.0 (#1326) 2023-08-25 10:52:36 +00:00