Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(forge) #5871

Merged
merged 2 commits into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions projects/getfoundry.sh/package.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
distributable:
# FIXME: foundry has releases named "Nightly (YYYY-MM-DD)"
# but their tags are "nightly-<sha>".
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-<sha>".
# 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

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
Expand Down Expand Up @@ -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
Expand Down
Loading