From d3fcbff8914350fd8f0ac652b9a1154e4f8bd05d Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sun, 5 Feb 2023 06:39:23 -0500 Subject: [PATCH] +sanitize --- projects/crates.io/sanitize/package.yml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/crates.io/sanitize/package.yml diff --git a/projects/crates.io/sanitize/package.yml b/projects/crates.io/sanitize/package.yml new file mode 100644 index 00000000..d73d8fe9 --- /dev/null +++ b/projects/crates.io/sanitize/package.yml @@ -0,0 +1,33 @@ +distributable: + url: https://github.com/jhheider/sanitize/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/sanitize + +versions: + github: jhheider/sanitize/tags + strip: /v/ + +build: + dependencies: + rust-lang.org: '>=1.56' + rust-lang.org/cargo: '*' + script: + cargo install --locked --path . --root {{prefix}} + +test: + script: | + mkdir -p foo/foo + touch foo/bar foo/bat foo/foo/bat foo/foo/bar + sanitize foo -f $FIXTURE -y + test "$(find foo | sort)" = "$OUT" + env: + OUT: | + foo + foo/bar + foo/foo + foo/foo/bat + fixture: | + /bar + /foo/bat