Skip to content

Commit

Permalink
fix: change path to git for production use
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasti810 committed Jul 18, 2024
1 parent caead66 commit e87dcfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/build_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ fn is_std() -> Option<bool> {
let dependencies = doc["dependencies"]["jolt"].as_inline_table()?;
let package = dependencies.get("package")?.as_str()?;

let path = dependencies
.get("path")
.expect("Failed to get path")
let git = dependencies
.get("git")
.expect("Failed to get git-path")
.as_str()
.expect("Failed to get path");
.expect("Failed to get git-path as string");

if package == "jolt-sdk" && path == "../../wasm-jolt/jolt-sdk" {
if package == "jolt-sdk" && git == "https://github.com/a16z/jolt" {
return Some(
dependencies
.get("features")
Expand Down

0 comments on commit e87dcfe

Please sign in to comment.