Commit graph

2045 commits

Author SHA1 Message Date
Jiahao XU
25024bbf52
Update strategies.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 14:11:05 +10:00
Jiahao XU
88266db317
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>
2024-08-03 14:08:30 +10:00
Jiahao XU
d1e93808f7
Update e2e-tests/strategies.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 14:04:44 +10:00
Jiahao XU
77e90ec078
update e2e-test-strategies
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:57:20 +10:00
Jiahao XU
730e469a0f
fix fmt in main_impl.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:47:26 +10:00
Jiahao XU
0437171cda
Fix fmt in args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:46:50 +10:00
Jiahao XU
73303aaec4
Fix args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:42:19 +10:00
Jiahao XU
f2f7ddc287
Fix typo in args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:22:10 +10:00
Jiahao XU
3a560ccd48
Fix args::parse
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:19:00 +10:00
Jiahao XU
a9b11630a0
Update entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:12:54 +10:00
Jiahao XU
91ee0495f6
fix use of args::parse main_impl.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:11:58 +10:00
Jiahao XU
8f21c16947
Compute cli_overrides in args::parse
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 13:07:38 +10:00
Jiahao XU
85f244fe97
Update strategies.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 11:59:03 +10:00
Jiahao XU
6c74c1c9a7
Fix entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 11:27:28 +10:00
Jiahao XU
75a8f99cde
fix entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 11:23:15 +10:00
Jiahao XU
2481a74e00
Fix entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 11:07:29 +10:00
Jiahao XU
6528b8ca63
Add e2e-tests for cli-overrides
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 11:06:06 +10:00
Jiahao XU
7c810c230d
Create strategies-test-override-Cargo.toml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 11:04:36 +10:00
Jiahao XU
1cc7c7a155
Fix passing of cli_overrides
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 10:18:43 +10:00
Jiahao XU
aacc9e3dca
Fix args::parse: Do not free disabled_strategies
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 10:17:27 +10:00
Jiahao XU
1801932e50
Fix cli override in entry.rs
Forward `args.disabled_strategies`

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 10:14:56 +10:00
github-actions[bot]
ad892911c6
dep: Upgrade transitive dependencies (#1856)
Co-authored-by: github-actions <github-actions@github.com>
2024-08-02 05:04:46 +00:00
Jiahao XU
9f3bfa9ca3
Switch back to macos-latest (#1855)
macos-latest is now an alias of macos-14 M1

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-31 12:49:13 +00:00
Jiahao XU
c635ad6f95
CI: Add release-plz to release library crates (#1850)
* Create release-plz.yml

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Disable release-plz for cargo-binstall

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Félix Saparelli <felix@passcod.name>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-07-29 03:52:03 +00:00
github-actions[bot]
f2a184de0e
release: cargo-binstall v1.8.0 (#1849)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 11:34:38 +00:00
github-actions[bot]
40a083f65d
release: binstalk v0.27.0 (#1848)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 10:49:28 +00:00
github-actions[bot]
091b39d278
release: binstalk-fetchers v0.8.0 (#1847)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 10:21:55 +00:00
github-actions[bot]
8b314728d8
release: binstalk-registry v0.10.0 (#1846)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 09:40:36 +00:00
github-actions[bot]
08d8946dde
release: binstalk-git-repo-api v0.4.0 (#1845)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 09:39:17 +00:00
github-actions[bot]
40ec708bd8
release: binstalk-bins v0.5.0 (#1843)
chore: Release

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-26 09:38:04 +00:00
github-actions[bot]
75d46eeaab
release: binstalk-manifests v0.14.0 (#1844)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 09:25:15 +00:00
github-actions[bot]
78f26622b2
release: binstalk-downloader v0.12.0 (#1842)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 09:11:23 +00:00
github-actions[bot]
24c7c1a4bb
release: cargo-toml-workspace v6.0.1 (#1840)
chore: Release

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-26 08:57:35 +00:00
github-actions[bot]
58d638726b
release: binstalk-types v0.8.0 (#1841)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 08:37:08 +00:00
Jiahao XU
6b4dbb4caa
Fix: Ignore invalid Github Token (#1839)
* Fix: Ignore empty Github Token

Empty GitHub Token is invalid, it should not be used.

* Fix compilation

And detect more invalid tokens

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-26 08:21:36 +00:00
Jiahao XU
e017be2247
Add env for --disable-strategies (#1838)
Fixed #1833
2024-07-26 06:46:04 +00:00
Jiahao XU
6809601273
Add new option to --disable-telemetry to disable quickinstall statistics collection (#1831)
* Add new option `--disable-quick-install-stats`

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

* Send quickinstall stats in parallel

This commit also make sure'the stats is always sent for
each fetcher, regardless of whether it is picked or not,
to make sure that the quick-install stats collection gets
the full infomration of possible targets.

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

* Rename option to `--disable-telemetry`

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

* Update args.rs

Co-authored-by: Félix Saparelli <felix@passcod.name>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update 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>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-07-26 06:03:38 +00:00
Jiahao XU
fa105bb8d7
Update doc in SUPPORT.md for disabled-strategies (#1830)
* Update doc in SUPPORT.md for disabled-strategies

For #1828 and #1721

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update SUPPORT.md

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-26 04:26:56 +00:00
github-actions[bot]
6df132a9d5
dep: Upgrade transitive dependencies (#1837)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-26 03:34:19 +00:00
Jiahao XU
871e1eaf68
Fix 1.80 cargo clippy errors (#1834)
Fix 1.80 clippy lint errors

Fix 1.80 linting

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-25 15:10:59 +00:00
Jiahao XU
53f342ab1c
Enable vendored native-tls if native-tls and static is enabled (#1832)
Fixed #1694

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-25 02:25:43 +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
dependabot[bot]
09d61d081d
build(deps): bump openssl from 0.10.64 to 0.10.66 in the cargo group (#1829)
Bumps the cargo group with 1 update: [openssl](https://github.com/sfackler/rust-openssl).


Updates `openssl` from 0.10.64 to 0.10.66
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.64...openssl-v0.10.66)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 22:12:40 +00:00
github-actions[bot]
fbe6e4c83a
dep: Upgrade transitive dependencies (#1825)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-19 04:03:34 +00:00
Jiahao XU
eba07fb147
Fix v1 manifest format for git and local path (#1821)
* Bump simple-git to v0.2.10

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

* Fix v1 manifest format for git and local path

Fixed #1815

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

* Fix v1 format for custom registry

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

* Remove unused functions

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

* Fix compilation

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

* Update git.sh

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fixed git.sh for windows

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fixx git.sh for win

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update git.sh

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix git.sh

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-07-17 05:34:12 +00:00
Jiahao XU
5a316b765f
Fix url link in README.md (#1820)
Fixed  #1819

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-15 14:10:12 +00:00
Kristof Mattei
fdfc89c287
fix: normalize GitHub URLs ending in .git to not ending in .git (#1804)
* fix: normalize GitHub URLs ending in .git to not ending in .git

* Refactor `Data::get_repo_info`

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

* Fix `get_repo_info` for repo with `.git` suffix

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

* Add e2e-tests to cover it

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

* Always try geting the redirected url

This would help:
 - redirect public gh repo `.git` to its canonical form
 - redirect public gh repo, which has been recently renamed
 - cases where redirection is needed to get the real repo

This commit make it fallbacks to the previou surl, if getting
the redirected url fail, in case the repository is private.

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

* Add more e2e-tests

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

* Optimize: Do not try redirect if gh_get_repo_info fail

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

* Minor refactor

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

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-14 14:45:41 +00:00
Jiahao XU
74af0e7f8a
Mark binstalk_manifests::cargo_crates_v1::CratesToml::insert private (#1818)
It uses a private type so it should not have public visibility.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-13 08:49:45 +00:00
dependabot[bot]
0fe605f7f0
build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group (#1817)
* build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group

Bumps the deps group with 1 update: [compact_str](https://github.com/ParkMyCar/compact_str).


Updates `compact_str` from 0.7.1 to 0.8.0
- [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ParkMyCar/compact_str/commits)

---
updated-dependencies:
- dependency-name: compact_str
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: deps
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix compilation error and deprecations

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

* Use `CompactString::const_new` when possible

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-13 04:10:11 +00:00
github-actions[bot]
a92ad4952f
dep: Upgrade transitive dependencies (#1816)
Co-authored-by: github-actions <github-actions@github.com>
2024-07-12 03:49:02 +00:00