Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Handle glob pattern in watch configuration path #12557

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace with jhrotko fork
Signed-off-by: Joana Hrotkó <joana.hrotko@gmail.com>
  • Loading branch information
jhrotko committed Feb 25, 2025
commit 8fd8d391c7697e6591543dc48409957128ecef76
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -200,4 +200,4 @@ require (
sigs.k8s.io/yaml v1.4.0 // indirect
)

replace github.com/compose-spec/compose-go/v2 v2.4.8 => ../compose-go
replace github.com/compose-spec/compose-go/v2 v2.4.8 => github.com/jhrotko/compose-go/v2 v2.0.0-20250217114813-b0bb892d9de8
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -249,6 +249,8 @@ github.com/in-toto/in-toto-golang v0.5.0/go.mod h1:/Rq0IZHLV7Ku5gielPT4wPHJfH1Gd
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jhrotko/compose-go/v2 v2.0.0-20250217114813-b0bb892d9de8 h1:oiXfjzHda6UTDxYRjQDGc+OVqWKNpDRa9A59bDTDDOI=
github.com/jhrotko/compose-go/v2 v2.0.0-20250217114813-b0bb892d9de8/go.mod h1:lFN0DrMxIncJGYAXTfWuajfwj5haBJqrBkarHcnjJKc=
github.com/jinzhu/gorm v0.0.0-20170222002820-5409931a1bb8 h1:CZkYfurY6KGhVtlalI4QwQ6T0Cu6iuY3e0x5RLu96WE=
github.com/jinzhu/gorm v0.0.0-20170222002820-5409931a1bb8/go.mod h1:Vla75njaFJ8clLU1W44h34PjIkijhjHIYnZxMqCdxqo=
github.com/jinzhu/inflection v0.0.0-20170102125226-1c35d901db3d h1:jRQLvyVGL+iVtDElaEIDdKwpPqUIZJfzkNLV34htpEc=
4 changes: 2 additions & 2 deletions pkg/compose/watch_test.go
Original file line number Diff line number Diff line change
@@ -124,13 +124,13 @@ func TestWatch_Sync(t *testing.T) {
rules, err := getWatchRules(&types.DevelopConfig{
Watch: []types.Trigger{
{
Path: "/sync",
Path: []string{"/sync"},
Action: "sync",
Target: "/work",
Ignore: []string{"ignore"},
},
{
Path: "/rebuild",
Path: []string{"/rebuild"},
Action: "rebuild",
},
},