From b65964f694818b443a576e9df1f1d909dedad912 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 12 Apr 2024 16:46:09 -0400 Subject: [PATCH] update(forge) (#5871) * update(forge) would benefit from https://github.com/pkgxdev/brewkit/issues/327 * fix test --- projects/getfoundry.sh/package.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/projects/getfoundry.sh/package.yml b/projects/getfoundry.sh/package.yml index 73090bcb..703beb22 100644 --- a/projects/getfoundry.sh/package.yml +++ b/projects/getfoundry.sh/package.yml @@ -1,16 +1,18 @@ distributable: # FIXME: foundry has releases named "Nightly (YYYY-MM-DD)" # but their tags are "nightly-". - url: https://github.com/foundry-rs/foundry/archive/refs/tags/nightly-54b369564937f5f5d4f2525622e8b9808b1645f6.tar.gz + # url: https://github.com/foundry-rs/foundry/archive/refs/tags/{{version.tag}}.tar.gz + url: https://github.com/foundry-rs/foundry/archive/refs/tags/nightly-bdc04c278f8ac716ed5fd3994bc0da841807b5cf.tar.gz strip-components: 1 versions: - # FIXME: we should use this, which will get us calver, - # but the tags are just "nightly-". - # github: foundry-rs/foundry/releases + # this would work with `version.tag`, except they're all pre-releases, which we + # ignore + # FIXME: https://github.com/pkgxdev/brewkit/issues/327 + # github: foundry-rs/foundry # strip: # - /^Nightly \(/ # - /\)$/ - - 2023.12.07 + - 2024.4.12 dependencies: git-scm.org: ^2 @@ -18,7 +20,7 @@ dependencies: build: dependencies: rust-lang.org: ^1.74 # edition: 2021 - rust-lang.org/cargo: "*" + rust-lang.org/cargo: '*' script: # install Forge - cargo install --path ./crates/forge $ARGS @@ -47,10 +49,11 @@ test: # forge uses git which has minimum config requirements. - | git init - git config user.email "hello@tea.xyz" - git config user.name "teapot" + git config user.email "hello@pkgx.dev" + git config user.name "pkgx" # And forge init requires a clean git repo. - | + touch README.md git add -A git commit -m "Initial commit" - forge init hello_foundry