diff --git a/internal/buildengine/discover_test.go b/internal/buildengine/discover_test.go index 8e2bbc5ad9..916488f0b0 100644 --- a/internal/buildengine/discover_test.go +++ b/internal/buildengine/discover_test.go @@ -25,7 +25,7 @@ func TestDiscoverModules(t *testing.T) { DeployDir: ".ftl", Schema: "schema.pb", Errors: "errors.pb", - Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../go-runtime/ftl/**/*.go"}, + Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../../go-runtime/ftl/**/*.go"}, }, }, { @@ -38,7 +38,7 @@ func TestDiscoverModules(t *testing.T) { DeployDir: ".ftl", Schema: "schema.pb", Errors: "errors.pb", - Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../go-runtime/ftl/**/*.go"}, + Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../../go-runtime/ftl/**/*.go"}, }, }, { @@ -141,7 +141,7 @@ func TestDiscoverModules(t *testing.T) { DeployDir: ".ftl", Schema: "schema.pb", Errors: "errors.pb", - Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../go-runtime/ftl/**/*.go"}, + Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../../go-runtime/ftl/**/*.go"}, }, }, { @@ -167,7 +167,7 @@ func TestDiscoverModules(t *testing.T) { DeployDir: ".ftl", Schema: "schema.pb", Errors: "errors.pb", - Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../go-runtime/ftl/**/*.go"}, + Watch: []string{"**/*.go", "go.mod", "go.sum", "../../../../go-runtime/ftl/**/*.go"}, }, }, } diff --git a/internal/buildengine/testdata/alpha/go.mod b/internal/buildengine/testdata/alpha/go.mod index c383178cbd..3ad7fec384 100644 --- a/internal/buildengine/testdata/alpha/go.mod +++ b/internal/buildengine/testdata/alpha/go.mod @@ -45,4 +45,4 @@ require ( google.golang.org/protobuf v1.34.2 // indirect ) -replace github.com/TBD54566975/ftl => ../../.. +replace github.com/TBD54566975/ftl => ../../../.. diff --git a/internal/buildengine/testdata/another/go.mod b/internal/buildengine/testdata/another/go.mod index e7ce193d92..a1879fc19d 100644 --- a/internal/buildengine/testdata/another/go.mod +++ b/internal/buildengine/testdata/another/go.mod @@ -45,4 +45,4 @@ require ( google.golang.org/protobuf v1.34.2 // indirect ) -replace github.com/TBD54566975/ftl => ../../.. +replace github.com/TBD54566975/ftl => ../../../.. diff --git a/internal/buildengine/testdata/depcycle2/go.mod b/internal/buildengine/testdata/depcycle2/go.mod index 3dceb6ee56..abba7b70cc 100644 --- a/internal/buildengine/testdata/depcycle2/go.mod +++ b/internal/buildengine/testdata/depcycle2/go.mod @@ -2,4 +2,4 @@ module ftl/depcycle2 go 1.22.2 -replace github.com/TBD54566975/ftl => ./../../../../.. +replace github.com/TBD54566975/ftl => ./../../../.. diff --git a/internal/buildengine/testdata/external/go.mod b/internal/buildengine/testdata/external/go.mod index 33c237f508..bcc8e68820 100644 --- a/internal/buildengine/testdata/external/go.mod +++ b/internal/buildengine/testdata/external/go.mod @@ -2,4 +2,4 @@ module ftl/external go 1.22.2 -replace github.com/TBD54566975/ftl => ../../.. +replace github.com/TBD54566975/ftl => ../../../.. diff --git a/internal/buildengine/testdata/highgoversion/go.mod b/internal/buildengine/testdata/highgoversion/go.mod index a3bb856861..f8f5d9d31b 100644 --- a/internal/buildengine/testdata/highgoversion/go.mod +++ b/internal/buildengine/testdata/highgoversion/go.mod @@ -43,4 +43,4 @@ require ( google.golang.org/protobuf v1.33.0 // indirect ) -replace github.com/TBD54566975/ftl => ../../.. +replace github.com/TBD54566975/ftl => ../../../.. diff --git a/internal/buildengine/testdata/integer/go.mod b/internal/buildengine/testdata/integer/go.mod index 6dadb0736e..ec58cea028 100644 --- a/internal/buildengine/testdata/integer/go.mod +++ b/internal/buildengine/testdata/integer/go.mod @@ -4,4 +4,4 @@ go 1.22.2 toolchain go1.22.4 -replace github.com/TBD54566975/ftl => /Users/jonathanj/dev/ftl +replace github.com/TBD54566975/ftl => ../../../.. diff --git a/internal/buildengine/testdata/other/go.mod b/internal/buildengine/testdata/other/go.mod index 87eb84f242..11f479f830 100644 --- a/internal/buildengine/testdata/other/go.mod +++ b/internal/buildengine/testdata/other/go.mod @@ -45,4 +45,4 @@ require ( google.golang.org/protobuf v1.34.2 // indirect ) -replace github.com/TBD54566975/ftl => ../../.. +replace github.com/TBD54566975/ftl => ../../../.. diff --git a/internal/buildengine/watch_test.go b/internal/buildengine/watch_test.go index e005a68e37..d45c14ca3e 100644 --- a/internal/buildengine/watch_test.go +++ b/internal/buildengine/watch_test.go @@ -232,7 +232,7 @@ func ftl(args ...string) error { func updateModFile(t *testing.T, dir string) { t.Helper() - cmd := exec.Command("go", "mod", "edit", "-replace=github.com/TBD54566975/ftl=..") + cmd := exec.Command("go", "mod", "edit", "-replace=github.com/TBD54566975/ftl=../..") cmd.Dir = dir cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr