Skip to content

Commit

Permalink
fix(volo-cli): idl update used wrong index (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu authored Sep 1, 2022
1 parent 606cc8a commit 56fecf2
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 48 deletions.
93 changes: 47 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion volo-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "volo-build"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description = "Compile thrift and protobuf idls into rust code at compile-time."
documentation = "https://docs.rs/volo-build"
Expand Down
2 changes: 1 addition & 1 deletion volo-build/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ pub fn get_repo_latest_commit_id(repo: &str, r#ref: &str) -> anyhow::Result<Stri
);
}
}
let commit_id = commit_list[0][1];
let commit_id = commit_list[0][0];
Ok(commit_id.into())
}

Expand Down

0 comments on commit 56fecf2

Please sign in to comment.