diff --git a/CHANGELOG.md b/CHANGELOG.md index 296246e..53e1ed9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.1] - 2026-02-14 + +### Fixed +- Fix ignore globs not supporting `**` patterns (e.g. `scenarios/**/*.md`) by replacing `filepath.Match` with `doublestar.Match` + ## [0.5.0] - 2026-02-13 ### Added @@ -73,6 +78,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Multi-stage Docker build - Automated vendor upgrade workflow +[0.5.1]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.4.0...v0.5.0 [0.4.0]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.3.0...v0.4.0 [0.3.0]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.2.5...v0.3.0 diff --git a/VERSION b/VERSION index 79a2734..5d4294b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.0 \ No newline at end of file +0.5.1 \ No newline at end of file diff --git a/go.mod b/go.mod index 25bc982..7140233 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ replace goodchanges/tsgo-vendor => ./_vendor/typescript-go require goodchanges/tsgo-vendor v0.0.0-00010101000000-000000000000 require ( + github.com/bmatcuk/doublestar/v4 v4.10.0 // indirect github.com/go-json-experiment/json v0.0.0-20251027170946-4849db3c2f7e // indirect github.com/klauspost/cpuid/v2 v2.2.10 // indirect github.com/zeebo/xxh3 v1.1.0 // indirect diff --git a/go.sum b/go.sum index 44896bc..3ac3cc8 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/bmatcuk/doublestar/v4 v4.10.0 h1:zU9WiOla1YA122oLM6i4EXvGW62DvKZVxIe6TYWexEs= +github.com/bmatcuk/doublestar/v4 v4.10.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/dlclark/regexp2 v1.11.5 h1:Q/sSnsKerHeCkc/jSTNq1oCm7KiVgUMZRDUoRu0JQZQ= github.com/dlclark/regexp2 v1.11.5/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= github.com/go-json-experiment/json v0.0.0-20251027170946-4849db3c2f7e h1:Lf/gRkoycfOBPa42vU2bbgPurFong6zXeFtPoxholzU= diff --git a/internal/rush/rush.go b/internal/rush/rush.go index d41e910..bec96b5 100644 --- a/internal/rush/rush.go +++ b/internal/rush/rush.go @@ -7,6 +7,8 @@ import ( "path/filepath" "regexp" "strings" + + "github.com/bmatcuk/doublestar/v4" ) type Project struct { @@ -147,7 +149,7 @@ func (pc *ProjectConfig) IsIgnored(relPath string) bool { return false } for _, pattern := range pc.Ignores { - if matched, _ := filepath.Match(pattern, relPath); matched { + if matched, _ := doublestar.Match(pattern, relPath); matched { return true } }