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

Fixed 

 - 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
..
atomic-file-install release: atomic-file-install v1.0.0 () 2023-08-19 04:50:39 +00:00
bin Fix GitHub token auto discovery () 2023-09-01 01:14:59 +00:00
binstalk Fix clippy lint and format () 2023-08-25 08:53:50 +00:00
binstalk-bins release: binstalk-bins v0.1.0 () 2023-08-24 07:57:10 +00:00
binstalk-downloader Fix GitHub token auto discovery () 2023-09-01 01:14:59 +00:00
binstalk-fetchers release: binstalk-fetchers v0.1.0 () 2023-08-24 10:24:07 +00:00
binstalk-manifests release: binstalk-manifests v0.8.1 () 2023-08-24 05:30:01 +00:00
binstalk-registry Fix clippy lint and format () 2023-08-25 08:53:50 +00:00
binstalk-types release: binstalk-types v0.5.0 () 2023-06-26 12:27:56 +00:00
cargo-toml-workspace release: cargo-toml-workspace v1.0.0 () 2023-08-19 04:51:04 +00:00
detect-targets release: detect-targets v0.1.10 () 2023-08-11 02:22:13 +00:00
detect-wasi Bump tempfile from 3.4.0 to 3.5.0 () 2023-03-30 02:49:38 +00:00
fs-lock Bump fs4 from 0.6.4 to 0.6.5 () 2023-06-01 04:02:01 +00:00
leon Fix clippy lint and format () 2023-08-25 08:53:50 +00:00
leon-macros release: leon v2.0.1 () 2023-06-26 05:10:30 +00:00
normalize-path release: normalize-path v0.2.1 () 2023-06-26 08:22:39 +00:00
simple-git release: simple-git v0.1.0 () 2023-08-24 05:29:13 +00:00