Compare commits

...

37 Commits

Author SHA1 Message Date
Taiki Endo
ccc14bdc8d Release 2.21.17 2023-11-19 16:41:07 +09:00
Taiki Endo
9e429c03af Update dprint@latest to 0.43.0 2023-11-19 15:10:11 +09:00
Taiki Endo
dd2be0d4c9 Release 2.21.16 2023-11-19 08:16:23 +09:00
Taiki Endo
e0ec1576c1 Update cargo-binstall@latest to 1.4.6 2023-11-18 21:09:08 +09:00
Taiki Endo
f3ff5c0533 Release 2.21.15 2023-11-18 12:34:06 +09:00
Taiki Endo
609de8170a Update syft@latest to 0.97.1 2023-11-18 09:20:53 +09:00
Taiki Endo
94ed3a3640 Release 2.21.14 2023-11-17 21:11:02 +09:00
Taiki Endo
9c981b3fed Update cargo-llvm-cov@latest to 0.5.37 2023-11-17 15:10:05 +09:00
Taiki Endo
9e7bc10665 Release 2.21.13 2023-11-17 10:36:40 +09:00
Taiki Endo
12669737fd Update syft@latest to 0.97.0 2023-11-17 09:20:14 +09:00
Taiki Endo
e2daa7c7c8 Release 2.21.12 2023-11-16 09:55:59 +09:00
Taiki Endo
bad6e0dafb Update protoc@latest to 3.25.1 2023-11-16 09:21:20 +09:00
Taiki Endo
4d8504289a Release 2.21.11 2023-11-12 21:19:24 +09:00
Taiki Endo
7319f907b0 Update cargo-binstall@latest to 1.4.5 2023-11-12 21:10:08 +09:00
Taiki Endo
a153e083c9 Release 2.21.10 2023-11-10 10:43:47 +09:00
Taiki Endo
542b8c6863 Update syft@latest to 0.96.0 2023-11-10 03:10:18 +09:00
Taiki Endo
7c4edf1434 Release 2.21.9 2023-11-09 10:31:33 +09:00
Taiki Endo
fa3a4ac7ab Update just@latest to 1.16.0 2023-11-09 09:21:58 +09:00
Taiki Endo
d685c02f67 codegen: Update toml_edit to 0.21 2023-11-08 23:09:37 +09:00
Taiki Endo
b4f94d4449 Release 2.21.8 2023-11-08 03:16:43 +09:00
Taiki Endo
c79d1c88dc Update syft@latest to 0.95.0 2023-11-08 03:09:28 +09:00
Taiki Endo
11dea51b35 Release 2.21.7 2023-11-02 11:39:39 +09:00
Taiki Endo
1fe621a4eb Update wasmtime@latest to 14.0.4 2023-11-02 09:21:06 +09:00
Taiki Endo
50c55a96f7 Update protoc@latest to 3.25.0 2023-11-02 09:21:06 +09:00
Taiki Endo
1286723668 Release 2.21.6 2023-10-31 22:13:50 +09:00
Taiki Endo
f059f7c59f tools: Update tidy.sh 2023-10-31 22:09:23 +09:00
Taiki Endo
caf2aa3753 Support dprint on aarch64 Linux (musl) 2023-10-31 22:08:19 +09:00
Taiki Endo
eb3cf0b5db Update cargo-make@latest to 0.37.4 2023-10-31 21:11:51 +09:00
Taiki Endo
ff4b9c5ebc Update biome@latest to 1.3.3 2023-10-31 21:11:51 +09:00
Taiki Endo
e0367a2d3f Release 2.21.5 2023-10-31 05:49:18 +09:00
Taiki Endo
16cc2573d5 Update cargo-llvm-cov@latest to 0.5.36 2023-10-31 05:49:01 +09:00
Taiki Endo
42a8da0cf1 Release 2.21.4 2023-10-31 03:16:33 +09:00
Taiki Endo
3ba41e50ff Use [lints] in Cargo.toml and apply more lints 2023-10-31 03:11:49 +09:00
Taiki Endo
88c52281ad Use version-less manifests
307486ed18
2023-10-31 03:11:49 +09:00
Taiki Endo
d13ae504ff Update wasmtime@latest to 14.0.3 2023-10-31 03:10:40 +09:00
Taiki Endo
285bd10d1c Release 2.21.3 2023-10-30 02:04:42 +09:00
Taiki Endo
1e8d44fc83 Update dprint@latest to 0.42.5 2023-10-29 15:11:51 +09:00
16 changed files with 537 additions and 79 deletions

View File

@@ -3,3 +3,11 @@
avoid-breaking-exported-api = false
disallowed-names = []
disallowed-macros = [
{ path = "std::dbg", reason = "it is okay to use during development, but please do not include it in main branch" },
]
disallowed-methods = [
{ path = "std::env::remove_var", reason = "this is not thread-safe and inherently unsafe; see <https://github.com/rust-lang/rust/issues/27970> for more" },
{ path = "std::env::set_var", reason = "this is not thread-safe and inherently unsafe; see <https://github.com/rust-lang/rust/issues/27970> for more" },
]
disallowed-types = []

View File

@@ -10,6 +10,72 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.21.17] - 2023-11-19
- Update `dprint@latest` to 0.43.0.
## [2.21.16] - 2023-11-18
- Update `cargo-binstall@latest` to 1.4.6.
## [2.21.15] - 2023-11-18
- Update `syft@latest` to 0.97.1.
## [2.21.14] - 2023-11-17
- Update `cargo-llvm-cov@latest` to 0.5.37.
## [2.21.13] - 2023-11-17
- Update `syft@latest` to 0.97.0.
## [2.21.12] - 2023-11-16
- Update `protoc@latest` to 3.25.1.
## [2.21.11] - 2023-11-12
- Update `cargo-binstall@latest` to 1.4.5.
## [2.21.10] - 2023-11-10
- Update `syft@latest` to 0.96.0.
## [2.21.9] - 2023-11-09
- Update `just@latest` to 1.16.0.
## [2.21.8] - 2023-11-07
- Update `syft@latest` to 0.95.0.
## [2.21.7] - 2023-11-02
- Update `wasmtime@latest` to 14.0.4.
- Update `protoc@latest` to 3.25.0.
## [2.21.6] - 2023-10-31
- Update `cargo-make@latest` to 0.37.4.
- Update `biome@latest` to 1.3.3.
- Support `dprint` on aarch64 Linux (musl).
## [2.21.5] - 2023-10-30
- Update `cargo-llvm-cov@latest` to 0.5.36.
## [2.21.4] - 2023-10-30
- Update `wasmtime@latest` to 14.0.3.
## [2.21.3] - 2023-10-29
- Update `dprint@latest` to 0.42.5.
## [2.21.2] - 2023-10-28
- Update `cargo-make@latest` to 0.37.3.
@@ -1379,7 +1445,22 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.21.2...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.21.17...HEAD
[2.21.17]: https://github.com/taiki-e/install-action/compare/v2.21.16...v2.21.17
[2.21.16]: https://github.com/taiki-e/install-action/compare/v2.21.15...v2.21.16
[2.21.15]: https://github.com/taiki-e/install-action/compare/v2.21.14...v2.21.15
[2.21.14]: https://github.com/taiki-e/install-action/compare/v2.21.13...v2.21.14
[2.21.13]: https://github.com/taiki-e/install-action/compare/v2.21.12...v2.21.13
[2.21.12]: https://github.com/taiki-e/install-action/compare/v2.21.11...v2.21.12
[2.21.11]: https://github.com/taiki-e/install-action/compare/v2.21.10...v2.21.11
[2.21.10]: https://github.com/taiki-e/install-action/compare/v2.21.9...v2.21.10
[2.21.9]: https://github.com/taiki-e/install-action/compare/v2.21.8...v2.21.9
[2.21.8]: https://github.com/taiki-e/install-action/compare/v2.21.7...v2.21.8
[2.21.7]: https://github.com/taiki-e/install-action/compare/v2.21.6...v2.21.7
[2.21.6]: https://github.com/taiki-e/install-action/compare/v2.21.5...v2.21.6
[2.21.5]: https://github.com/taiki-e/install-action/compare/v2.21.4...v2.21.5
[2.21.4]: https://github.com/taiki-e/install-action/compare/v2.21.3...v2.21.4
[2.21.3]: https://github.com/taiki-e/install-action/compare/v2.21.2...v2.21.3
[2.21.2]: https://github.com/taiki-e/install-action/compare/v2.21.1...v2.21.2
[2.21.1]: https://github.com/taiki-e/install-action/compare/v2.21.0...v2.21.1
[2.21.0]: https://github.com/taiki-e/install-action/compare/v2.20.17...v2.21.0

View File

@@ -1,3 +1,38 @@
[workspace]
resolver = "2"
members = ["tools/codegen"]
# This table is shared by projects under https://github.com/taiki-e.
# It is not intended for manual editing.
[workspace.lints.rust]
improper_ctypes = "warn"
improper_ctypes_definitions = "warn"
non_ascii_idents = "warn"
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
[workspace.lints.clippy]
all = "warn" # Downgrade deny-by-default lints
pedantic = "warn"
as_ptr_cast_mut = "warn"
default_union_representation = "warn"
inline_asm_x86_att_syntax = "warn"
trailing_empty_array = "warn"
transmute_undefined_repr = "warn"
undocumented_unsafe_blocks = "warn"
# Suppress buggy or noisy clippy lints
borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286
doc_markdown = { level = "allow", priority = 1 }
float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725
manual_assert = { level = "allow", priority = 1 }
manual_range_contains = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395
missing_errors_doc = { level = "allow", priority = 1 }
module_name_repetitions = { level = "allow", priority = 1 }
similar_names = { level = "allow", priority = 1 }
single_match = { level = "allow", priority = 1 }
single_match_else = { level = "allow", priority = 1 }
struct_excessive_bools = { level = "allow", priority = 1 }
too_many_arguments = { level = "allow", priority = 1 }
too_many_lines = { level = "allow", priority = 1 }
type_complexity = { level = "allow", priority = 1 }

26
manifests/biome.json generated
View File

@@ -27,13 +27,33 @@
}
},
"latest": {
"version": "1.3.1"
"version": "1.3.3"
},
"1": {
"version": "1.3.1"
"version": "1.3.3"
},
"1.3": {
"version": "1.3.1"
"version": "1.3.3"
},
"1.3.3": {
"x86_64_linux_gnu": {
"checksum": "f15e955a935ec1e255a626c4501048612a271539483f76d8d392b0cc7e80b42a"
},
"x86_64_macos": {
"checksum": "7b5a6f7a480b371f99889b86b1dab83459100078f76e5764c2344d14e20e9cc5"
},
"x86_64_windows": {
"checksum": "55cc372816ae1b08a87ec33508f031852e78f5e4e6c183e3049d9886b91fe8ea"
},
"aarch64_linux_gnu": {
"checksum": "3eac5c42c21f330a77f194ad10fd9cfa3e627512d999124405fb9e033223b6eb"
},
"aarch64_macos": {
"checksum": "7cc8ed3b20a936a7c739554742dfb9529b045a372af45a5e21e311013140930c"
},
"aarch64_windows": {
"checksum": "fd913acca6a1e81aa3a916cde92003c377458e302946614f0ccd503c815e0a46"
}
},
"1.3.1": {
"x86_64_linux_gnu": {

View File

@@ -21,26 +21,26 @@
}
},
"latest": {
"version": "1.4.4"
"version": "1.4.6"
},
"1.4.4": {
"1.4.6": {
"x86_64_linux_musl": {
"checksum": "1ebe1ea7c17799af5b007fb129127493f1617bc3240b56463753cdaaa9df8f90"
"checksum": "77e13c15c979e2d233290aa4354bf8f6416768cc175ed9aadcb8a46ffe3f4b46"
},
"x86_64_macos": {
"checksum": "0e9035c97d9f1a2a6707a07415d4b04b459b4f426e168b8742143f86b1272e42"
"checksum": "8f76db704186a0ce87148a31a91ad9101ff2f5ad0b9ff98f19e20f795230c343"
},
"x86_64_windows": {
"checksum": "900ca1c7e31e734ecb760473cc8b1f363d96668f358a983a1d41a65b868bbf5d"
"checksum": "787f3568162702b553f7877b7e1e41a1ff88e698d11a54b371b7495d801cd047"
},
"aarch64_linux_musl": {
"checksum": "00f3da8c996bbef968c6d081d909e7e85228b14206d46ac6b6ef88bdbe070a19"
"checksum": "887361073d873ab4054257da60df784ae5471262c355074dd9b56fd5a4ec7dd4"
},
"aarch64_macos": {
"checksum": "51511cd78b82321b4546a17fc82db0004fadb19cf2435381b72380c6bdf8a3dc"
"checksum": "ba897e52709139005b148cda8dc8e8efc3f45346e840dec34dbb3f43db453f0b"
},
"aarch64_windows": {
"checksum": "52a5c59f8745c455674cf6465a04b2f2240d6267c90418e1f943134c2652b249"
"checksum": "1b69501ed825f928575f1f447e73da1989d9f91a0cb61a2b829dac456a74038b"
}
}
}

View File

@@ -18,10 +18,44 @@
}
},
"latest": {
"version": "0.5.35"
"version": "0.5.37"
},
"0.5": {
"version": "0.5.35"
"version": "0.5.37"
},
"0.5.37": {
"x86_64_linux_musl": {
"checksum": "3444cd1604eae4e2aaf7ad7be7ebc5be2fc3571000b900e41a63e2fc64ebba5f"
},
"x86_64_macos": {
"checksum": "7662cd747762b6d8e131997b153acf4137f6f35fc3929be1f4db2f1ad4df115a"
},
"x86_64_windows": {
"checksum": "dd2f7624ac0fbad43b927e684fa840d9d76c3a17af0e58ed3acb5e95fc56c9da"
},
"aarch64_linux_musl": {
"checksum": "e1ff7c522dd0df727e8af7e83f726094a621418f33ad0da0d49c66fabe76321e"
},
"aarch64_macos": {
"checksum": "cdea4c173930aef177768c6f1ffb928e578ce46a765df0e7c5ebd69bdceadf4a"
}
},
"0.5.36": {
"x86_64_linux_musl": {
"checksum": "48083f2df7030ac1f5567d2e4155aac71115bc81432da6a97c35b603f8f9d1ed"
},
"x86_64_macos": {
"checksum": "bcf604c0eb65818e8a3b7b004f45856ef9ab6f0a1c6621c8f3c029e44050f601"
},
"x86_64_windows": {
"checksum": "b5e6f0cfe3e7a5a7470664afac705b55b233a7c3cfa9dab007c725cd94ba0565"
},
"aarch64_linux_musl": {
"checksum": "3f2e9339d505bb330fcadee6a3a8fdfe69a8490bbdc0858ddc152142be8f0b77"
},
"aarch64_macos": {
"checksum": "36f431920be39b719438a0a60a568852e2bcfab79db395caf7f77da304451bda"
}
},
"0.5.35": {
"x86_64_linux_musl": {

View File

@@ -19,10 +19,24 @@
}
},
"latest": {
"version": "0.37.3"
"version": "0.37.4"
},
"0.37": {
"version": "0.37.3"
"version": "0.37.4"
},
"0.37.4": {
"x86_64_linux_musl": {
"checksum": "bbfd8d09b62dbb447022a041eae40a185172a8ca75b151365e6347d880ee2870"
},
"x86_64_macos": {
"checksum": "4629a0b8a1c201676701093f8206c2468ac4a5a62884f0d88a72bd7d81d60e76"
},
"x86_64_windows": {
"checksum": "981d60e42e3b31382385fcbafd4e42cf48cf1c80fb3b33a9f3fe62b8d49b7c62"
},
"aarch64_macos": {
"checksum": "8a3a4cbe458b873f743c5b72174104759001b5980fa52edba117033a55c6167a"
}
},
"0.37.3": {
"x86_64_linux_musl": {

44
manifests/dprint.json generated
View File

@@ -16,15 +16,55 @@
"aarch64_linux_gnu": {
"url": "https://github.com/dprint/dprint/releases/download/${version}/dprint-aarch64-unknown-linux-gnu.zip"
},
"aarch64_linux_musl": {
"url": "https://github.com/dprint/dprint/releases/download/${version}/dprint-aarch64-unknown-linux-musl.zip"
},
"aarch64_macos": {
"url": "https://github.com/dprint/dprint/releases/download/${version}/dprint-aarch64-apple-darwin.zip"
}
},
"latest": {
"version": "0.42.3"
"version": "0.43.0"
},
"0.43": {
"version": "0.43.0"
},
"0.43.0": {
"x86_64_linux_musl": {
"checksum": "a73e3ced32b4b82f4e462e4cb4c8206e87d649715b974ed17f90986856498255"
},
"x86_64_macos": {
"checksum": "8687ddffc00197807ca37934bdf392fa7f7441b8124a6679c9fcccb862c5c5e7"
},
"x86_64_windows": {
"checksum": "dc36df4049633e0bb281a1cdb64ad95e593f299e560b664958457478267e939e"
},
"aarch64_linux_musl": {
"checksum": "76270d79c923c14fdbd617d46765ab4299cd5966532bf3c602a5eb414cd6e755"
},
"aarch64_macos": {
"checksum": "fa5f29ab77fb32742aba7d5cd1cb01d1e8f84abda5ddcddb5c4489fbad231390"
}
},
"0.42": {
"version": "0.42.3"
"version": "0.42.5"
},
"0.42.5": {
"x86_64_linux_musl": {
"checksum": "f4326c24117bfc06cc8010da940e85be817c8c798b0e72243edd60066c88dbea"
},
"x86_64_macos": {
"checksum": "4b1d1fd868a39dd6c8a1641ed774d1b25ded18694a3c7e585f7af4bf74ac00ec"
},
"x86_64_windows": {
"checksum": "6eeb4b17eb7492f8e89cb8334581159686bb793c5e4dff6ecf029aa786f5e88c"
},
"aarch64_linux_musl": {
"checksum": "6a99b4ed259c82487993dc17d488f21dd495f6b2fb59d99408734e51ea3c7377"
},
"aarch64_macos": {
"checksum": "93c995332cb927cebd5b0937fc23939ea5f18b8a24a76e8535486abb9da4a68b"
}
},
"0.42.3": {
"x86_64_linux_musl": {

24
manifests/just.json generated
View File

@@ -18,10 +18,30 @@
}
},
"latest": {
"version": "1.15.0"
"version": "1.16.0"
},
"1": {
"version": "1.15.0"
"version": "1.16.0"
},
"1.16": {
"version": "1.16.0"
},
"1.16.0": {
"x86_64_linux_musl": {
"checksum": "06bdaeb64cf9077cef7b5ec664b6614850a1271747c10fbc3068b7dca3296ff9"
},
"x86_64_macos": {
"checksum": "d4939075bfed22a1a0043e5dd9d755b7d096b19150cee9b2cd9666db1b69ed1c"
},
"x86_64_windows": {
"checksum": "a15996ae91b51e779181ce20623719857d47ea1564bf235fa5ab3de9cd4c450c"
},
"aarch64_linux_musl": {
"checksum": "294ddfe0475491b5466ce7fc1a4acda56f91005ef36d224f2d22cf490920f994"
},
"aarch64_macos": {
"checksum": "badc6cb59bcb492d06d8df92c02091f1b093be8e8e67bd35aac7e66826c2405c"
}
},
"1.15": {
"version": "1.15.0"

51
manifests/protoc.json generated
View File

@@ -2,10 +2,57 @@
"rust_crate": null,
"template": null,
"latest": {
"version": "3.24.4"
"version": "3.25.1"
},
"3": {
"version": "3.24.4"
"version": "3.25.1"
},
"3.25": {
"version": "3.25.1"
},
"3.25.1": {
"x86_64_linux_gnu": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip",
"checksum": "ed8fca87a11c888fed329d6a59c34c7d436165f662a2c875246ddb1ac2b6dd50"
},
"x86_64_macos": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-osx-x86_64.zip",
"checksum": "72c6d6b2bc855ff8688c3b7fb31288ccafd0ab55256ff8382d5711ecfcc11f4f"
},
"x86_64_windows": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-win64.zip",
"checksum": "b55901fc748d1679f3a803bdc2a920e1897eb02433c501b5a589ea08c4623844"
},
"aarch64_linux_gnu": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-aarch_64.zip",
"checksum": "99975a8c11b83cd65c3e1151ae1714bf959abc0521acb659bf720524276ab0c8"
},
"aarch64_macos": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-osx-aarch_64.zip",
"checksum": "320308ce18c359564948754f51748de41cf02a4e7edf0cf47a805b9d38610f16"
}
},
"3.25.0": {
"x86_64_linux_gnu": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protoc-25.0-linux-x86_64.zip",
"checksum": "d26c4efe0eae3066bb560625b33b8fc427f55bd35b16f246b7932dc851554e67"
},
"x86_64_macos": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protoc-25.0-osx-x86_64.zip",
"checksum": "15eefb30ba913e8dc4dd21d2ccb34ce04a2b33124f7d9460e5fd815a5d6459e3"
},
"x86_64_windows": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protoc-25.0-win64.zip",
"checksum": "ce2955439c6bb4c7d599d6ace2dabe4cb31f62c34808e542a7af57a3c6627d8a"
},
"aarch64_linux_gnu": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protoc-25.0-linux-aarch_64.zip",
"checksum": "fe79d0eb356422917279c9580f74d2a486a8173fd020843f3b28ea6b71fba327"
},
"aarch64_macos": {
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protoc-25.0-osx-aarch_64.zip",
"checksum": "76a997df5dacc0608e880a8e9069acaec961828a47bde16c06116ed2e570588b"
}
},
"3.24": {
"version": "3.24.4"

79
manifests/syft.json generated
View File

@@ -23,7 +23,84 @@
}
},
"latest": {
"version": "0.94.0"
"version": "0.97.1"
},
"0.97": {
"version": "0.97.1"
},
"0.97.1": {
"x86_64_linux_musl": {
"checksum": "592e642bb795bb0f6d9c35f4da58774f9b40d1f8ece3ea0367c2dea27dced470"
},
"x86_64_macos": {
"checksum": "d86c2c80ef47179229bdd857508411424cf612760f13b8dc394de2f2a65d7ca6"
},
"x86_64_windows": {
"checksum": "aac9e63d219f27a75751e74d09d36c2ddfc02d1d623f8f8234e6b377f525ed2d"
},
"aarch64_linux_musl": {
"checksum": "039003a7bc551f298d16ed770a1e5d0a51ea5fb1d86e021623a0435f69203c64"
},
"aarch64_macos": {
"checksum": "7f62a2a6b5d56d065703e313d1a74893e9579396d75f022eedc8dab723ab0a8e"
}
},
"0.97.0": {
"x86_64_linux_musl": {
"checksum": "c17c905a2b687c1dac3fb96d7d30bcd6fbec1bdb5662372d0d9e2f8536b7ce04"
},
"x86_64_macos": {
"checksum": "46636177f41e8fe01941b786141a9cabd34453da2b245068925e0f8a56797a54"
},
"x86_64_windows": {
"checksum": "250cc21ad1538c575fa74d51230c20c7517af79d36b5271788ca4ebf038e4a26"
},
"aarch64_linux_musl": {
"checksum": "8cce25f7180c385de094936c40306f5efacf1ec5dc9e150076aa1b8a4844ff35"
},
"aarch64_macos": {
"checksum": "6bb8c10704c2d0de82e3e6dfd845391343c6d13737b71576f4c5d586b0eefbe1"
}
},
"0.96": {
"version": "0.96.0"
},
"0.96.0": {
"x86_64_linux_musl": {
"checksum": "abc1b66ba07241eaa667a78900dabab4a4e7a96a1776b39628a4de3b61dfa30d"
},
"x86_64_macos": {
"checksum": "08e8b68e4f59fac5320a44738c6352c70f7b70e55823447736c4188d9a39f479"
},
"x86_64_windows": {
"checksum": "6e459a69302a181a62e2e85566e94ecce4850a908af648850467a4d2d426823e"
},
"aarch64_linux_musl": {
"checksum": "d43bd1a221f4393b1e6ddb1d03d381b6dde837d2b35c121eeec16f360e399592"
},
"aarch64_macos": {
"checksum": "ab4c4a3b09c0fa6b0b6f00596bd13fe177bf1510ba6cea6bbcd6af3b846bc4a7"
}
},
"0.95": {
"version": "0.95.0"
},
"0.95.0": {
"x86_64_linux_musl": {
"checksum": "437ce8e8f23176a88f8ad05a6252dc417081a4569c921ddbe6241c9873da8cba"
},
"x86_64_macos": {
"checksum": "6d46dc6a5565a5296a3ca606345d249796248f334c438f3ec59419227357f3ec"
},
"x86_64_windows": {
"checksum": "aff4d28a825e59e799610463cdce3ff89fc41532b2cadfa7067a8e2295bcd315"
},
"aarch64_linux_musl": {
"checksum": "8fc9b37e861ebc9fdddf09dc3b1089cdab6a7f2eb4f18c0d57e1716cdd1c8d25"
},
"aarch64_macos": {
"checksum": "bcc97342151b95dfa4fbe06c25de4508b6e703f3780b1ad4a2be67ec15844e66"
}
},
"0.94": {
"version": "0.94.0"

View File

@@ -2,13 +2,67 @@
"rust_crate": "wasmtime-cli",
"template": null,
"latest": {
"version": "14.0.2"
"version": "14.0.4"
},
"14": {
"version": "14.0.2"
"version": "14.0.4"
},
"14.0": {
"version": "14.0.2"
"version": "14.0.4"
},
"14.0.4": {
"x86_64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-x86_64-linux.tar.xz",
"checksum": "7683aa6a7922cb6c7f687022026057e522abb2b20dde7d7ddef773382703dd78",
"bin": "wasmtime-v14.0.4-x86_64-linux/wasmtime"
},
"x86_64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-x86_64-macos.tar.xz",
"checksum": "7ba9e46478f8340de74154a663473bca8d16efb51f2680c48da59a6164d98e60",
"bin": "wasmtime-v14.0.4-x86_64-macos/wasmtime"
},
"x86_64_windows": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-x86_64-windows.zip",
"checksum": "d92867844663287f9a74e74f5006212f81f3af80e80ec000245b34a7a9375fe8",
"bin": "wasmtime-v14.0.4-x86_64-windows/wasmtime.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-aarch64-linux.tar.xz",
"checksum": "0c9131bb4d022a310cb18900dd91bef2be383c3bce48387c8200804259422b4c",
"bin": "wasmtime-v14.0.4-aarch64-linux/wasmtime"
},
"aarch64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-aarch64-macos.tar.xz",
"checksum": "e15b16c0a5184e36d0ffc27d7b5b96f6de04cc4edd6c165d8280a0fad44d9d55",
"bin": "wasmtime-v14.0.4-aarch64-macos/wasmtime"
}
},
"14.0.3": {
"x86_64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.3/wasmtime-v14.0.3-x86_64-linux.tar.xz",
"checksum": "9edc728b4601d4552cbdecd23d1c6e9712ea4e5a645518b1e570c2aa0165954e",
"bin": "wasmtime-v14.0.3-x86_64-linux/wasmtime"
},
"x86_64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.3/wasmtime-v14.0.3-x86_64-macos.tar.xz",
"checksum": "04f994c58febde85c57343c55bbeacfc021a3505257accbea2d2df532244ec3d",
"bin": "wasmtime-v14.0.3-x86_64-macos/wasmtime"
},
"x86_64_windows": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.3/wasmtime-v14.0.3-x86_64-windows.zip",
"checksum": "6ae803bd0e66f2fc22b4165b0282757571a101af60fbac789a6e7f2074ac72a9",
"bin": "wasmtime-v14.0.3-x86_64-windows/wasmtime.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.3/wasmtime-v14.0.3-aarch64-linux.tar.xz",
"checksum": "4eed3576ff23152c7f107244d0c1d6f3d2a663aebb160ab972207e82eb796e2e",
"bin": "wasmtime-v14.0.3-aarch64-linux/wasmtime"
},
"aarch64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.3/wasmtime-v14.0.3-aarch64-macos.tar.xz",
"checksum": "59e6f0777d016de7816bac99086f2060114f05a46a25e13ce81b3f23a839d59b",
"bin": "wasmtime-v14.0.3-aarch64-macos/wasmtime"
}
},
"14.0.2": {
"x86_64_linux_gnu": {

View File

@@ -1,8 +1,6 @@
[package]
name = "install-action-internal-codegen"
version = "0.0.0"
edition = "2021"
publish = false
[dependencies]
anyhow = "1"
@@ -15,5 +13,8 @@ serde_derive = "1"
serde_json = "1"
sha2 = "0.10"
tar = "0.4"
toml_edit = { version = "0.20", features = ["serde"] }
toml_edit = { version = "0.21", default-features = false, features = ["parse", "serde"] }
ureq = { version = "2", features = ["json"] }
[lints]
workspace = true

View File

@@ -9,6 +9,7 @@
"x86_64_macos": {},
"x86_64_windows": {},
"aarch64_linux_gnu": {},
"aarch64_linux_musl": {},
"aarch64_macos": {}
}
}

View File

@@ -1,7 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
#![allow(clippy::single_match)]
use std::{
cmp::Reverse,
collections::{BTreeMap, BTreeSet},
@@ -315,6 +313,7 @@ fn main() -> Result<()> {
continue;
}
// compact manifest
// TODO: do this before download binaries
if download_info.contains_key(&HostPlatform::x86_64_linux_gnu)
&& download_info.contains_key(&HostPlatform::x86_64_linux_musl)
{
@@ -517,8 +516,8 @@ impl Version {
major: Some(major),
minor,
patch: None,
pre: Default::default(),
build: Default::default(),
pre: semver::Prerelease::default(),
build: semver::BuildMetadata::default(),
}
}
fn latest() -> Self {
@@ -526,8 +525,8 @@ impl Version {
major: None,
minor: None,
patch: None,
pre: Default::default(),
build: Default::default(),
pre: semver::Prerelease::default(),
build: semver::BuildMetadata::default(),
}
}
fn to_semver(&self) -> Option<semver::Version> {
@@ -611,8 +610,8 @@ impl FromStr for Version {
major: Some(v.major),
minor: v.minor,
patch: v.patch,
pre: Default::default(),
build: Default::default(),
pre: semver::Prerelease::default(),
build: semver::BuildMetadata::default(),
}),
Err(_e) => Err(e),
},
@@ -806,21 +805,21 @@ mod github {
use serde_derive::Deserialize;
// https://api.github.com/repos/<repo>/releases
pub type Releases = Vec<Release>;
pub(crate) type Releases = Vec<Release>;
// https://api.github.com/repos/<repo>/releases/<tag>
#[derive(Debug, Deserialize)]
pub struct Release {
pub tag_name: String,
pub prerelease: bool,
pub assets: Vec<ReleaseAsset>,
pub(crate) struct Release {
pub(crate) tag_name: String,
pub(crate) prerelease: bool,
pub(crate) assets: Vec<ReleaseAsset>,
}
#[derive(Debug, Deserialize)]
pub struct ReleaseAsset {
pub name: String,
pub content_type: String,
pub browser_download_url: String,
pub(crate) struct ReleaseAsset {
pub(crate) name: String,
// pub(crate) content_type: String,
pub(crate) browser_download_url: String,
}
}
@@ -829,16 +828,16 @@ mod crates_io {
// https://crates.io/api/v1/crates/<crate>
#[derive(Debug, Deserialize)]
pub struct Crate {
pub versions: Vec<Version>,
pub(crate) struct Crate {
pub(crate) versions: Vec<Version>,
}
#[derive(Debug, Deserialize)]
pub struct Version {
pub checksum: String,
pub dl_path: String,
pub num: semver::Version,
pub yanked: bool,
pub(crate) struct Version {
pub(crate) checksum: String,
pub(crate) dl_path: String,
pub(crate) num: semver::Version,
pub(crate) yanked: bool,
}
}
@@ -846,28 +845,28 @@ mod cargo_manifest {
use serde_derive::Deserialize;
#[derive(Debug, Deserialize)]
pub struct Manifest {
pub package: Package,
pub(crate) struct Manifest {
pub(crate) package: Package,
}
#[derive(Debug, Deserialize)]
pub struct Package {
pub metadata: Metadata,
pub(crate) struct Package {
pub(crate) metadata: Metadata,
}
#[derive(Debug, Deserialize)]
pub struct Metadata {
pub binstall: Binstall,
pub(crate) struct Metadata {
pub(crate) binstall: Binstall,
}
#[derive(Debug, Deserialize)]
pub struct Binstall {
pub signing: BinstallSigning,
pub(crate) struct Binstall {
pub(crate) signing: BinstallSigning,
}
#[derive(Debug, Deserialize)]
pub struct BinstallSigning {
pub algorithm: String,
pub pubkey: String,
pub(crate) struct BinstallSigning {
pub(crate) algorithm: String,
pub(crate) pubkey: String,
}
}

View File

@@ -65,6 +65,9 @@ fi
# Rust (if exists)
if [[ -n "$(git ls-files '*.rs')" ]]; then
info "checking Rust code style"
if [[ ! -e .rustfmt.toml ]]; then
warn "could not found .rustfmt.toml in the repository root"
fi
if type -P rustup &>/dev/null; then
# `cargo fmt` cannot recognize files not included in the current workspace and modules
# defined inside macros, so run rustfmt directly.
@@ -119,6 +122,10 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
publish=$(jq <<<"${pkg}" -r '.publish')
manifest_path=$(jq <<<"${pkg}" -r '.manifest_path')
if ! grep -q '^\[lints\]' "${manifest_path}" && ! grep -q '^\[lints\.rust\]' "${manifest_path}"; then
warn "no [lints] table in ${manifest_path} please add '[lints]' with 'workspace = true'"
fi
# Publishing is unrestricted if null, and forbidden if an empty array.
if [[ "${publish}" == "[]" ]]; then
continue
@@ -127,11 +134,19 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
done
if [[ -n "${has_public_crate}" ]]; then
info "checking file permissions"
if [[ -f Cargo.toml ]] && grep -Eq '^\[package\]' Cargo.toml && ! grep -Eq '^publish = false' Cargo.toml; then
if ! grep -Eq '^exclude = \[.*\.\*.*\]' Cargo.toml; then
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
elif ! grep -Eq '^exclude = \[.*/tools.*\]' Cargo.toml; then
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
if [[ -f Cargo.toml ]]; then
root_manifest=$(cargo locate-project --message-format=plain --manifest-path Cargo.toml)
root_pkg=$(jq <<<"${metadata}" ".packages[] | select(.manifest_path == \"${root_manifest}\")")
if [[ -n "${root_pkg}" ]]; then
publish=$(jq <<<"${root_pkg}" -r '.publish')
# Publishing is unrestricted if null, and forbidden if an empty array.
if [[ "${publish}" != "[]" ]]; then
if ! grep -Eq '^exclude = \[.*\.\*.*\]' Cargo.toml; then
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
elif ! grep -Eq '^exclude = \[.*/tools.*\]' Cargo.toml; then
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
fi
fi
fi
fi
for p in $(git ls-files); do
@@ -158,27 +173,30 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
fi
# C/C++ (if exists)
if [[ -n "$(git ls-files '*.c')$(git ls-files '*.cpp')" ]]; then
if [[ -n "$(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')" ]]; then
info "checking C/C++ code style"
if [[ ! -e .clang-format ]]; then
warn "could not fount .clang-format in the repository root"
warn "could not found .clang-format in the repository root"
fi
if type -P clang-format &>/dev/null; then
echo "+ clang-format -i \$(git ls-files '*.c') \$(git ls-files '*.cpp')"
clang-format -i $(git ls-files '*.c') $(git ls-files '*.cpp')
check_diff $(git ls-files '*.c') $(git ls-files '*.cpp')
echo "+ clang-format -i \$(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')"
clang-format -i $(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')
check_diff $(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')
else
warn "'clang-format' is not installed; skipped C/C++ code style check"
fi
fi
# YAML/JavaScript/JSON (if exists)
if [[ -n "$(git ls-files '*.yml')$(git ls-files '*.js')$(git ls-files '*.json')" ]]; then
if [[ -n "$(git ls-files '*.yml' '*.js' '*.json')" ]]; then
info "checking YAML/JavaScript/JSON code style"
if [[ ! -e .editorconfig ]]; then
warn "could not found .editorconfig in the repository root"
fi
if type -P npm &>/dev/null; then
echo "+ npx -y prettier -l -w \$(git ls-files '*.yml') \$(git ls-files '*.js') \$(git ls-files '*.json')"
npx -y prettier -l -w $(git ls-files '*.yml') $(git ls-files '*.js') $(git ls-files '*.json')
check_diff $(git ls-files '*.yml') $(git ls-files '*.js') $(git ls-files '*.json')
echo "+ npx -y prettier -l -w \$(git ls-files '*.yml' '*.js' '*.json')"
npx -y prettier -l -w $(git ls-files '*.yml' '*.js' '*.json')
check_diff $(git ls-files '*.yml' '*.js' '*.json')
else
warn "'npm' is not installed; skipped YAML/JavaScript/JSON code style check"
fi
@@ -188,7 +206,7 @@ if [[ -n "$(git ls-files '*.yml')$(git ls-files '*.js')$(git ls-files '*.json')"
if type -P jq &>/dev/null && type -P yq &>/dev/null; then
for workflow in .github/workflows/*.yml; do
# The top-level permissions must be weak as they are referenced by all jobs.
permissions=$(yq '.permissions' "${workflow}" | jq -c)
permissions=$(yq -c '.permissions' "${workflow}")
case "${permissions}" in
'{"contents":"read"}' | '{"contents":"none"}') ;;
null) error "${workflow}: top level permissions not found; it must be 'contents: read' or weaker permissions" ;;
@@ -222,6 +240,9 @@ fi
# Markdown (if exists)
if [[ -n "$(git ls-files '*.md')" ]]; then
info "checking Markdown style"
if [[ ! -e .markdownlint.yml ]]; then
warn "could not found .markdownlint.yml in the repository root"
fi
if type -P npm &>/dev/null; then
echo "+ npx -y markdownlint-cli2 \$(git ls-files '*.md')"
npx -y markdownlint-cli2 $(git ls-files '*.md')
@@ -237,6 +258,9 @@ fi
# Shell scripts
info "checking Shell scripts"
if type -P shfmt &>/dev/null; then
if [[ ! -e .editorconfig ]]; then
warn "could not found .editorconfig in the repository root"
fi
echo "+ shfmt -l -w \$(git ls-files '*.sh')"
shfmt -l -w $(git ls-files '*.sh')
check_diff $(git ls-files '*.sh')
@@ -244,6 +268,9 @@ else
warn "'shfmt' is not installed; skipped Shell scripts style check"
fi
if type -P shellcheck &>/dev/null; then
if [[ ! -e .shellcheckrc ]]; then
warn "could not found .shellcheckrc in the repository root"
fi
echo "+ shellcheck \$(git ls-files '*.sh')"
if ! shellcheck $(git ls-files '*.sh'); then
should_fail=1