Skip to content

Commit

Permalink
chore: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Aug 17, 2024
1 parent 3dd6160 commit 6f60fbd
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions internal/buildengine/discover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
},
},
{
Expand All @@ -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"},
},
},
{
Expand Down Expand Up @@ -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"},
},
},
{
Expand All @@ -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"},
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/alpha/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ require (
google.golang.org/protobuf v1.34.2 // indirect
)

replace github.com/TBD54566975/ftl => ../../..
replace github.com/TBD54566975/ftl => ../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/another/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ require (
google.golang.org/protobuf v1.34.2 // indirect
)

replace github.com/TBD54566975/ftl => ../../..
replace github.com/TBD54566975/ftl => ../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/depcycle2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module ftl/depcycle2

go 1.22.2

replace github.com/TBD54566975/ftl => ./../../../../..
replace github.com/TBD54566975/ftl => ./../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/external/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module ftl/external

go 1.22.2

replace github.com/TBD54566975/ftl => ../../..
replace github.com/TBD54566975/ftl => ../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/highgoversion/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ require (
google.golang.org/protobuf v1.33.0 // indirect
)

replace github.com/TBD54566975/ftl => ../../..
replace github.com/TBD54566975/ftl => ../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/integer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/testdata/other/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ require (
google.golang.org/protobuf v1.34.2 // indirect
)

replace github.com/TBD54566975/ftl => ../../..
replace github.com/TBD54566975/ftl => ../../../..
2 changes: 1 addition & 1 deletion internal/buildengine/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f60fbd

Please sign in to comment.