Skip to content

Commit

Permalink
+typos (#2971)
Browse files Browse the repository at this point in the history
* +typos

* fix

* fix tests
  • Loading branch information
kevinmichaelchen authored Aug 20, 2023
1 parent 50f3df3 commit f7d4349
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions projects/crates.io/typos/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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:
cargo install --locked --path . --root {{prefix}}

test:
script:
# Passes
- test "$(typos --version)" = "typos-cli {{version}}"
- echo "crumble" | typos -

# Fails
- test ! $(echo "crumlbe" | typos -)

0 comments on commit f7d4349

Please sign in to comment.