sourmash-bio / sourmash

Quickly search, compare, and analyze genomic and metagenomic data sets.
http://sourmash.readthedocs.io/en/latest/
Other
476 stars 79 forks source link

error publishing wasm package for r0.17.0 #3382

Closed ctb closed 1 week ago

ctb commented 2 weeks ago
Subject: [sourmash-bio/sourmash] Run failed: Rust publish - r0.17.0 (e86c8a8)   

[sourmash-bio/sourmash] Rust publish workflow run                               

Repository: sourmash-bio/sourmash                                               
Workflow: Rust publish                                                          
Duration: 3 minutes and 27.0 seconds                                            
Finished: 2024-11-05 22:06:44 UTC                                               

View results: https://github.com/sourmash-bio/sourmash/actions/runs/11693246022 

Jobs:                                                                           
  * Publish to crates.io succeeded (6 annotations)                              
  * Check if wasm-pack builds a valid package for the sourmash crate failed (13 
annotations)  

and the run error:

 [INFO]: License key is set in Cargo.toml but no LICENSE file(s) were found; Please add the LICENSE file(s) to your project directory
[INFO]: Installing wasm-bindgen...
[INFO]: Optimizing wasm binaries with `wasm-opt`...
[parse exception: Only 1 table definition allowed in MVP (at 0:1908)]
Fatal: error in parsing input
Error: failed to execute `wasm-opt`: exited with exit status: 1
  full command: "/home/runner/.cache/.wasm-pack/wasm-opt-4d7a65327e9363b7/wasm-opt" "src/core/../../pkg/sourmash_bg.wasm" "-o" "src/core/../../pkg/sourmash_bg.wasm-opt.wasm" "-O"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
Error: Process completed with exit code 1.
ctb commented 2 weeks ago

but! rust crate published: https://crates.io/crates/sourmash

luizirber commented 1 week ago

Fixed in https://github.com/sourmash-bio/sourmash/pull/3392