guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

Recursive wildcards must form a single path component running chomp #178

Closed Hypercubed closed 10 months ago

Hypercubed commented 10 months ago

I recently needed to resetup my dev env (Ubuntu via WSL) which included reinstalling chomp. After setup running chomp on some of my project produces the following error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PatternError { pos: 50, msg: "recursive wildcards must form a single path component" }', src/task.rs:2131:52
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Not sure whcih version of chomp (or rust) was working for me previously but currently running:

> cargo --version --verbose
cargo 1.73.0 (9c4383fb5 2023-08-26)
release: 1.73.0
commit-hash: 9c4383fb55986096b414d98125421ab87b5fd642
commit-date: 2023-08-26
host: x86_64-unknown-linux-gnu
libgit2: 1.6.4 (sys:0.17.2 vendored)
libcurl: 8.2.1-DEV (sys:0.4.65+curl-8.2.1 vendored ssl:OpenSSL/1.1.1u)
ssl: OpenSSL 1.1.1u  30 May 2023
os: Ubuntu 22.04 (jammy) [64-bit]

> chomp --version
Chomp 0.2.17

Any thoughts appreciated.

Hypercubed commented 10 months ago

Well... when I can my task from

[[task]]
name = 'build:##'
target = './build/##'
deps = [
  './bin/ff-##.ts',
  './src/**/*.ts'
]

to

[[task]]
name = 'build:#'
target = './build/#'
deps = [
  './bin/ff-#.ts',
  './src/**/*.ts'
]

the error goes away. Maybe a breaking chaneg I miss somewhere?