Compare commits

...

6 Commits

Author SHA1 Message Date
Taiki Endo
dbc32cd892 Release 2.47.2 2025-01-01 03:16:54 +09:00
Taiki Endo
82750cbcb9 Update typos@latest to 1.29.0 2025-01-01 03:15:13 +09:00
Taiki Endo
77b010ce78 Release 2.47.1 2024-12-31 21:16:18 +09:00
Taiki Endo
00beeed3bd Update cargo-tarpaulin@latest to 0.31.4 2024-12-31 21:15:34 +09:00
Taiki Endo
3ab44cd9ab Update cargo-binstall@latest to 1.10.18 2024-12-28 15:13:22 +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
5 changed files with 77 additions and 19 deletions

View File

@@ -10,6 +10,16 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.47.2] - 2024-12-31
- Update `typos@latest` to 1.29.0.
## [2.47.1] - 2024-12-31
- Update `cargo-tarpaulin@latest` to 0.31.4.
- Update `cargo-binstall@latest` to 1.10.18.
## [2.47.0] - 2024-12-27
- Support `wash`. ([#794](https://github.com/taiki-e/install-action/pull/794), thanks @joonas)
@@ -3264,7 +3274,9 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.47.0...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.47.2...HEAD
[2.47.2]: https://github.com/taiki-e/install-action/compare/v2.47.1...v2.47.2
[2.47.1]: https://github.com/taiki-e/install-action/compare/v2.47.0...v2.47.1
[2.47.0]: https://github.com/taiki-e/install-action/compare/v2.46.20...v2.47.0
[2.46.20]: https://github.com/taiki-e/install-action/compare/v2.46.19...v2.46.20
[2.46.19]: https://github.com/taiki-e/install-action/compare/v2.46.18...v2.46.19

View File

@@ -22,32 +22,32 @@
},
"license_markdown": "[GPL-3.0](https://github.com/cargo-bins/cargo-binstall/blob/HEAD/crates/bin/LICENSE)",
"latest": {
"version": "1.10.17"
"version": "1.10.18"
},
"1.10.17": {
"1.10.18": {
"x86_64_linux_musl": {
"etag": "0x8DD1C1188E2154D",
"checksum": "d073d4e8901e176b0f625845f9a0bbd926a063017991d7cc0c863e6b884d2d59"
"etag": "0x8DD2701DB5E5F3C",
"checksum": "3cee9a0e3074a9ed397b33de8d6f73c1bc591a041af3b57c4e9f5aa9939a5c21"
},
"x86_64_macos": {
"etag": "0x8DD1C1106A79811",
"checksum": "16d557e8ea929d3ff310e7a3958a2d3b8c7d88005709dc46aebe57e4675d4be7"
"etag": "0x8DD270174067A5B",
"checksum": "7ae2edf8c057b4da57374de604047125d6ffcff36c13e1481912707c016245c1"
},
"x86_64_windows": {
"etag": "0x8DD1C1262D55EBB",
"checksum": "3866b6c93534147c2382b2360b6d84681b3ff7ef623919d9bd08e53817df8c50"
"etag": "0x8DD27029B083B68",
"checksum": "b0fde17b48f0a43b57d218388e58ce89689b3b91d8e272500ed85789656510b5"
},
"aarch64_linux_musl": {
"etag": "0x8DD1C111D1C3CE8",
"checksum": "7250d4973167bbb0633773af98351fda151e7077efd0b582c149916d409dec75"
"etag": "0x8DD270186728539",
"checksum": "f9d1c2cc5f703eebf4e15260298ac7d644dc25d5691b23413b2337da340787dc"
},
"aarch64_macos": {
"etag": "0x8DD1C115B3B3306",
"checksum": "81abb7de75ef130844bb58965bdb93969afadd0821cf5e1e1bd0517e48963199"
"etag": "0x8DD2701C1E5AD95",
"checksum": "cdd82130ba1c98ca4db63c44087881d6ae92ba642ba6361654987a707040aabd"
},
"aarch64_windows": {
"etag": "0x8DD1C1232EE4057",
"checksum": "c5ae6543a4b97372a163444468720984e41a6cd3eecd82fdf75c65528ec3f806"
"etag": "0x8DD270271851C1E",
"checksum": "e8c206865a9bac281e44939968f53d53c31c466f8b15e2cf7ac293c793a0da46"
}
}
}

View File

@@ -19,10 +19,32 @@
},
"license_markdown": "[MIT](https://github.com/xd009642/tarpaulin/blob/develop/LICENSE-MIT) OR [Apache-2.0](https://github.com/xd009642/tarpaulin/blob/develop/LICENSE-APACHE)",
"latest": {
"version": "0.31.3"
"version": "0.31.4"
},
"0.31": {
"version": "0.31.3"
"version": "0.31.4"
},
"0.31.4": {
"x86_64_linux_musl": {
"etag": "0x8DD2989345D8F62",
"checksum": "94a47da7a7a1e659c3f72d09e97e27962107d5cc9cb6c10f6725e1ed2ae2c145"
},
"x86_64_macos": {
"etag": "0x8DD2988DAFD48B6",
"checksum": "ea4eb1a57b259e6c7062790072e679dab78dea5e053141d67f5741805ba315e4"
},
"x86_64_windows": {
"etag": "0x8DD29894A932EA9",
"checksum": "10f7e7fe8bf81b9272ef983ff5d84c7c51c1492caca851234efbe093f01e246c"
},
"aarch64_linux_musl": {
"etag": "0x8DD2988FF72D12E",
"checksum": "1a646b57c6060c96c04c753aefa8f5696b6e97aa3ae1fb32a7239929f1245bbf"
},
"aarch64_macos": {
"etag": "0x8DD2988CB3EFCE4",
"checksum": "5214123555d1ccd3f5a3c7911e0556cb8d0a1161b645948dfa0ecc7a07b43357"
}
},
"0.31.3": {
"x86_64_linux_musl": {

25
manifests/typos.json generated
View File

@@ -16,10 +16,31 @@
},
"license_markdown": "[MIT](https://github.com/crate-ci/typos/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/crate-ci/typos/blob/master/LICENSE-APACHE)",
"latest": {
"version": "1.28.4"
"version": "1.29.0"
},
"1": {
"version": "1.28.4"
"version": "1.29.0"
},
"1.29": {
"version": "1.29.0"
},
"1.29.0": {
"x86_64_linux_musl": {
"etag": "0x8DD29B260A3C957",
"checksum": "d936bdd241fd7e5cf30802ad60d942169f6e2f4197444824ccb8bd7bdebb1245"
},
"x86_64_macos": {
"etag": "0x8DD29B249212B90",
"checksum": "7ad39f41dc23e1c3c8470ba3f8c0c1457928c668af6552b07f74a77b65585515"
},
"x86_64_windows": {
"etag": "0x8DD29B2A7AF8080",
"checksum": "1216d4e9c353132045f53e84977003f8c29af8f1131045df5b69daf39ef02b48"
},
"aarch64_macos": {
"etag": "0x8DD29B27BAFFF8A",
"checksum": "a5e204a4b2c2cd920772a5404a425ad15a39793d6359340790e8ebeb5eb62b9a"
}
},
"1.28": {
"version": "1.28.4"

View File

@@ -137,6 +137,7 @@ fn main() -> Result<()> {
};
let version = &*k.0.to_string();
if let Some(template) = &manifests.template {
#[allow(clippy::literal_string_with_formatting_args)]
for (platform, d) in &mut manifest.download_info {
let template = &template.download_info[platform];
d.url = Some(template.url.replace("${version}", version));
@@ -563,6 +564,7 @@ fn main() -> Result<()> {
};
let version = &*version.0.to_string();
let t = template.as_mut().unwrap();
#[allow(clippy::literal_string_with_formatting_args)]
for (platform, d) in &mut manifest.download_info {
let template_url = d.url.take().unwrap().replace(version, "${version}");
let template_bin = d.bin.take().map(|s| s.map(|s| s.replace(version, "${version}")));
@@ -600,6 +602,7 @@ fn write_manifests(manifest_path: &Path, manifests: &Manifests) -> Result<()> {
Ok(())
}
#[allow(clippy::literal_string_with_formatting_args)]
fn replace_vars(
s: &str,
package: &str,