pantry/projects/crates.io/typos/package.yml

28 lines
539 B
YAML
Raw Normal View History

distributable:
url: https://github.com/crate-ci/typos/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/typos
versions:
github: crate-ci/typos
strip: /v/
build:
working-directory: crates/typos-cli
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
script:
2023-08-30 20:02:17 +03:00
cargo install --path . --root {{prefix}}
test:
script:
# Passes
- test "$(typos --version)" = "typos-cli {{version}}"
- echo "crumble" | typos -
# Fails
- test ! $(echo "crumlbe" | typos -)