Skip to content

Commit

Permalink
fix jq output
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Jun 30, 2024
1 parent bac7f39 commit 9b0f0fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-forge-std.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Fetch and update forge-std tag
run: curl 'https://api.github.com/repos/foundry-rs/forge-std/tags' | jq '.[0].commit.sha' > testdata/forge-std-rev
run: curl 'https://api.github.com/repos/foundry-rs/forge-std/tags' | jq '.[0].commit.sha' -jr > testdata/forge-std-rev
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
Expand Down
8 changes: 5 additions & 3 deletions crates/test-utils/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,13 @@ pub fn initialize(target: &Path) {

cmd.args(["init", "--force"]).assert_success();
// checkout forge-std
Command::new("git")
assert!(Command::new("git")
.current_dir(prj.root().join("lib/forge-std"))
.args(["checkout", FORGE_STD_REVISION])
.spawn()
.expect("failed to checkout forge-std");
.output()
.expect("failed to checkout forge-std")
.status
.success());
cmd.forge_fuse().args(["build", "--use", SOLC_VERSION]).assert_success();

// Remove the existing template, if any.
Expand Down
2 changes: 1 addition & 1 deletion testdata/forge-std-rev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"8948d45d3d9022c508b83eb5d26fd3a7a93f2f32"
8948d45d3d9022c508b83eb5d26fd3a7a93f2f32

0 comments on commit 9b0f0fa

Please sign in to comment.