Jiahao XU
b854f3f52c
feature: Merge disable strategies ( #1868 )
...
* feat: Merge --disable-strategies with ones in cargo manifest
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Update doc
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Update e2e-test-strategies
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix typo in option doc in crates/bin/src/args.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-08-07 14:04:00 +00:00
Jiahao XU
ee94b8b639
Fix: --strategies on CLI do not seem to override disabled-strategies in the manifest ( #1857 )
...
* Fix cli override in entry.rs
Forward `args.disabled_strategies`
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix `args::parse`: Do not free disabled_strategies
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix passing of cli_overrides
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Create strategies-test-override-Cargo.toml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Add e2e-tests for cli-overrides
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* fix entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update strategies.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Compute cli_overrides in args::parse
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* fix use of args::parse main_impl.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix args::parse
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix typo in args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix fmt in args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* fix fmt in main_impl.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* update e2e-test-strategies
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update e2e-tests/strategies.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update e2e-tests/strategies.sh
Make sure both --strategies and --disable-strategies is tested
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update strategies.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 05:27:23 +00:00
Jiahao XU
3f29fbe83a
Feature: SupportdDisable of strategies for crate using Cargo.toml
( #1828 )
...
* Refactor: Move `Strategy` to `binstalk-types`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add serialisation test for `Strategy`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add support to disable strategies via crate `Cargo.toml`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add e2e-test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `Cargo.toml` disabled strategy checking for compile strategy
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Optimize `resolve_inner`: Cache meta override
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add compile-time length checking for `Strategy`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* More optimization
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix order of override: cli options alwayus takes precedence
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add missing manifest for e2e-test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-23 14:05:22 +00:00
Jiahao XU
b876bdc8c7
e2e-tests: Check version of installed crates ( #1119 )
...
and also test `fetch_crate_cratesio_version_matched` in
`e2e-tests/live.sh`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-03 08:28:44 +00:00
Jiahao XU
0261d12d9d
Support subcrate in repo ( #991 )
...
Fixed #838
- Add new key `subcrate` for rendering `pkg-url`
- Add new release paths in GitHub, GitLab & SourceForge using key `subcrate` for auto-detection
- Add subcrate detection for GitHub and GitLab
- Add `debug!` when using gh api token in `GhApiClient::new`
- Add subcrate testing to `e2e-tests/subcrate.sh`
- Bump cargo-release to 0.24.9 in e2e-tests/live.sh
to fix test failure on MacOS without libssl installed in `/usr/local/`.
- Optimize GhCrateMeta: Detect subcrate and repo-host in `Data::get_repo_info`
to cache the result and avoid duplicate works, this also makes the code
more ergonomic by removing the need to some `unwrap()` plus making it
more efficient since we don't need to clone the url just to modify it.
- Add instrument to `Data::get_repo_info`
- Fix `shellcheck` err in `e2e-tests/*.sh`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-24 19:41:20 +10:00
Félix Saparelli
e89b8e2463
Use known-working versions for tests ( #900 )
2023-03-13 18:11:29 +13:00
Jiahao XU
1be25f81b5
Fix FileLock
for .crates.toml
not dropped ( #697 )
...
* Fix `FileLock` for `.crates.toml` not dropped
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rm unneccessary ret type annotation for the closure
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add regression test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-01-12 18:45:36 +13:00
Félix Saparelli
aea9df602c
Migrate CI and builds to Just, add "full" builds ( #660 )
2023-01-08 16:27:36 +11:00