mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-12 07:30:18 +00:00
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"repository": "https://github.com/drager/wasm-pack",
|
||||
"license_markdown": "[MIT](https://github.com/drager/wasm-pack/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/drager/wasm-pack/blob/master/LICENSE-APACHE)",
|
||||
"repository": "https://github.com/wasm-bindgen/wasm-pack",
|
||||
"license_markdown": "[MIT](https://github.com/wasm-bindgen/wasm-pack/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/wasm-bindgen/wasm-pack/blob/master/LICENSE-APACHE)",
|
||||
"tag_prefix": "v",
|
||||
"rust_crate": "${package}",
|
||||
"asset_name": "${package}-v${version}-${rust_target}.tar.gz",
|
||||
|
||||
@@ -118,7 +118,12 @@ fn main() {
|
||||
|
||||
if let Some(crate_repository) = info.crate_.repository.clone() {
|
||||
if !crate_repository.to_lowercase().starts_with(&base_info.repository.to_lowercase()) {
|
||||
panic!("repository {crate_repository} from crates.io differs from base manifest");
|
||||
// TODO: wasm-pack repo has been moved, but there is no release since it.
|
||||
if package != "wasm-pack" {
|
||||
panic!(
|
||||
"repository {crate_repository} from crates.io differs from base manifest"
|
||||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
panic!("crate metadata does not include a repository");
|
||||
|
||||
Reference in New Issue
Block a user