Commit Graph

93 Commits

Author SHA1 Message Date
♫ Christian Krause ♫ b3b4c93c56 Fix error message grammar (#1616) 2026-03-24 20:17:45 +09:00
Taiki Endo c35d18270e Support signature verification for mise and syft 2026-03-22 01:51:55 +09:00
Taiki Endo 525387f706 codegen: Clean up error handling and move some checks to appropriate
place

Unless error handling is done in particular care, in private tools this
approach tends to make debugging easier when failed.
2026-03-22 00:24:42 +09:00
Taiki Endo 9881fbaadb Update TOOLS.md to include aliases 2026-03-21 05:53:02 +09:00
Taiki Endo 8418e9f725 Support artifact attestations verification 2026-03-21 04:45:12 +09:00
Taiki Endo 68bba89805 manifest-schema: Apply clippy::exhaustive_enums and
clippy::exhaustive_structs
2026-03-21 03:51:13 +09:00
Taiki Endo 7df5094d28 manifest-schema: Rename ManifestDownloadInfo::checksum to hash to reduce
manifest size

Before:
```
wc -c manifests/* | grep total
2808686 total
```

After:
```
wc -c manifests/* | grep total
2748178 total
```
2026-03-21 03:48:16 +09:00
Taiki Endo 9089010789 manifest-schema: BaseManifest is not a part of Manifest
manifest-schema branch doesn't contain base manifests.
2026-03-21 03:31:00 +09:00
Taiki Endo 5ccf6295e6 codegen: Avoid allocation in workspace_root() 2026-03-09 00:29:35 +09:00
Taiki Endo a62e6211cb codegen: Use ring instead of sha2
```
    Updating crates.io index
     Locking 0 packages to latest compatible versions
    Removing block-buffer v0.10.4
    Removing cpufeatures v0.2.17
    Removing crypto-common v0.1.7
    Removing digest v0.10.7
    Removing generic-array v0.14.7
    Removing sha2 v0.10.9
    Removing typenum v1.19.0
    Removing version_check v0.9.5
```
2025-12-17 20:19:06 +09:00
Taiki Endo 4830d35beb codegen: Allow lacking x86_64_macos when aarch64_macos is available 2025-10-11 23:55:37 +09:00
Taiki Endo 3a6ab413c1 Support powerpc64le/riscv64/s390x Linux runners 2025-09-08 23:24:31 +09:00
dependabot[bot] 405215e4b1 Update spdx requirement from 0.11 to 0.12 (#1102) 2025-08-23 12:37:23 +10:00
Taiki Endo 83b71b9001 codegen: Check that the digest matches GitHub Releases' one
https://github.blog/changelog/2025-06-03-releases-now-expose-digests-for-release-assets/
2025-07-26 02:21:37 +09:00
Taiki Endo ea7f99bca8 codegen: Use toml instead of toml_edit 2025-07-10 00:20:52 +09:00
John Vandenberg 7afdc6d42b Add cyclonedx (#1000)
Also improve check that gnu binaries are not needed if musl exists.
2025-06-19 20:55:47 +09:00
John Vandenberg fde7b8ff39 Avoid regenerating license_markdown if present and still valid (#973) 2025-05-22 22:54:59 +10:00
Taiki Endo 537312ee19 codegen: Exclude versions not released on crates.io from candidate for "latest" 2025-04-04 07:33:46 +09:00
Taiki Endo 011a3fc5ce rustfmt: set style_edition = "2024" 2025-02-23 22:32:18 +09:00
Taiki Endo 804d0fbae7 Revert "codegen: Update ureq from 2 to 3"
This reverts commit bee06ee963.

See https://github.com/taiki-e/install-action/pull/831#issuecomment-2650284580.
2025-02-11 18:45:46 +09:00
Taiki Endo c92f25fe23 codegen: Dedup x86_64_windows/aarch64_windows 2025-02-11 18:41:00 +09:00
Taiki Endo 771bd4fef9 codegen: Tweak code around BufWriter 2025-02-11 18:40:20 +09:00
Taiki Endo bee06ee963 codegen: Update ureq from 2 to 3 2025-02-06 23:24:03 +09:00
Taiki Endo be22d29d34 Fix clippy::unnecessary_semicolon warning
```
error: unnecessary semicolon
   --> tools/codegen/src/main.rs:251:10
    |
251 |         };
    |          ^ help: remove
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
    = note: `-D clippy::unnecessary-semicolon` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_semicolon)]`
```
2025-01-30 14:03:36 +09:00
Jiahao XU 1ef1e14c21 Extract install-action-manifest-schema and publish to crates-io (#657)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: Taiki Endo <te316e89@gmail.com>
2025-01-28 07:02:39 +00:00
Taiki Endo b58c61fa21 Apply clippy::unused_trait_names lint 2025-01-13 23:41:50 +09:00
Taiki Endo 8cec5c3000 codegen: Ignore clippy::literal_string_with_formatting_args lint
```
error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:142:65
    |
142 | ...                   d.url = Some(template.url.replace("${version}", version));
    |                                                           ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
    = note: `-D clippy::literal-string-with-formatting-args` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_args)]`

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:146:64
    |
146 | ...                   .map(|s| s.map(|s| s.replace("${version}", version)));
    |                                                      ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:567:73
    |
567 |             let template_url = d.url.take().unwrap().replace(version, "${version}");
    |                                                                         ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:568:84
    |
568 |             let template_bin = d.bin.take().map(|s| s.map(|s| s.replace(version, "${version}")));
    |                                                                                    ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:615:29
    |
615 |     let mut s = s.replace("${package}", package).replace("${tool}", package);
    |                             ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:625:25
    |
625 |         s = s.replace("${version}", version);
    |                         ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
```
2024-12-27 10:57:03 +09:00
Taiki Endo b5ee2ee0c2 codegen: Remove needless clone 2024-11-20 04:10:19 +09:00
Taiki Endo f0e0e09968 Update comments 2024-11-20 04:10:19 +09:00
Taiki Endo 33a1d08515 Fix clippy::unnecessary_map_or warning
```
error: this `map_or` is redundant
  --> tools/codegen/src/main.rs:68:34
   |
68 |         if r.len() < per_page || version_req.map_or(false, |req| req == "latest") {
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `version_req.is_some_and(|req| req == "latest")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
   = note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
```
2024-11-17 13:31:13 +09:00
Taiki Endo 7ea7a2c18f Ignore clippy::too_long_first_doc_paragraph lint
```
error: first doc comment paragraph is too long
   --> tools/codegen/src/lib.rs:314:1
    |
314 | / /// GitHub Actions Runner supports Linux (x86_64, aarch64, arm), Windows (x86_64, aarch64),
315 | | /// and macOS (x86_64, aarch64).
316 | | /// https://github.com/actions/runner/blob/v2.315.0/.github/workflows/build.yml#L21
317 | | /// https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-f...
318 | | ///
319 | | /// Note:
    | |_
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
    = note: `-D clippy::too-long-first-doc-paragraph` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::too_long_first_doc_paragraph)]`
```
2024-08-26 23:47:54 +09:00
Taiki Endo 66b16da49c codegen: Use LazyLock again 2024-08-12 05:02:13 +09:00
Taiki Endo c995477ff1 Update TOOLS.md 2024-08-12 04:35:43 +09:00
Taiki Endo 3a2f9ffb94 Improve platform support 2024-07-16 00:11:38 +09:00
Jiahao XU 4558bb807b Speedup codegen by caching tools/codegen compilation (#554) 2024-06-22 12:43:03 +09:00
Taiki Endo 926cd2a86f codegen: Remove needless allocation 2024-06-21 22:08:16 +09:00
John Vandenberg 8162519fa9 Add knope (#553)
* Add knope

* Update tag_prefix
2024-06-21 19:35:52 +10:00
John Vandenberg a6c0face45 Use asset etag to avoid fetches (#547) 2024-06-21 03:54:24 +00:00
Taiki Endo a5ddc5a290 codegen: Cleanup 2024-06-20 04:34:01 +09:00
Taiki Endo e2ceb8a503 codegen: Unify string conversion style 2024-06-20 04:32:58 +09:00
Taiki Endo 881201d335 Do not install to /usr/local/bin 2024-06-20 02:42:24 +09:00
Taiki Endo 5a6e4c785f Add manifest for cargo-nextest 2024-06-09 16:41:17 +09:00
John Vandenberg 66c4dcc03d Add rclone (#511)
* Add rclone

* fix cspell

* specify bin dir
2024-06-08 16:07:49 +10:00
John Vandenberg 6ebd8c0cb0 Generate TOOLS.md header/footer (#504) 2024-06-04 21:59:23 +09:00
John Vandenberg d7080cb663 Generate Markdown table of tools (#473) 2024-06-04 03:56:04 +09:00
John Vandenberg 68c5e86b83 codegen: Avoid using GITHUB_TOKEN with crates.io (#484) 2024-05-19 11:54:42 +09:00
John Vandenberg d722dd2b73 codegen: Allow skipping existing versions (#485) 2024-05-19 11:51:47 +09:00
Taiki Endo 502402be82 Improve support for SUSE/Arch based containers/self-hosted runners 2024-04-19 21:35:52 +09:00
Taiki Endo 599507f802 tools: Tweak manifest.sh 2024-04-01 22:41:43 +09:00
John Vandenberg ee2b189d46 Add editorconfig-checker (#430) 2024-04-01 09:01:27 +09:00