Skip to content

Commit

Permalink
fix: use git ls-files -z (#781)
Browse files Browse the repository at this point in the history
Also bump version in go.mod/go.work files and templates. Need a more
permanent fix for this.
  • Loading branch information
alecthomas authored Jan 15, 2024
1 parent 991d0df commit d73eaa1
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
run: bit frontend/dist/index.html
- name: Publish Go Binaries
run: |
git ls-files -- '*.go' | xargs errtrace -w && go mod tidy
git ls-files -z -- '*.go' | xargs -0 errtrace -w && go mod tidy
bit build/release/ftl
goreleaser release --skip=validate
env:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.controller
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN go mod download -x

# Build
COPY . /src/
RUN git ls-files -- '*.go' | xargs errtrace -w && go mod tidy
RUN git ls-files -z -- '*.go' | xargs -0 errtrace -w && go mod tidy
RUN bit build/release/ftl-controller
RUN bit build/release/ftl-initdb
RUN bit build/release/ftl
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.runner
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COPY . /src/
RUN bit build/template/ftl/jars/ftl-runtime.jar

# Build runner
RUN git ls-files -- '*.go' | xargs errtrace -w && go mod tidy
RUN git ls-files -z -- '*.go' | xargs -0 errtrace -w && go mod tidy
RUN bit build/release/ftl-runner
RUN bit build/release/ftl

Expand Down
1 change: 1 addition & 0 deletions bin/.staticcheck-2023.1.6.pkg
1 change: 1 addition & 0 deletions bin/staticcheck
2 changes: 1 addition & 1 deletion examples/echo/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/echo

go 1.21.5
go 1.21.6

require github.com/TBD54566975/ftl v0.95.0

Expand Down
2 changes: 1 addition & 1 deletion examples/online-boutique/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/TBD54566975/ftl/examples/online-boutique

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../..
2 changes: 1 addition & 1 deletion examples/online-boutique/services/ad/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/ad

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../../../..

Expand Down
2 changes: 1 addition & 1 deletion examples/online-boutique/services/cart/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/cart

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../../../..

Expand Down
2 changes: 1 addition & 1 deletion examples/online-boutique/services/currency/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/currency

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../../../..

Expand Down
2 changes: 1 addition & 1 deletion examples/online-boutique/services/payment/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/payment

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../../../..

Expand Down
2 changes: 1 addition & 1 deletion examples/online-boutique/services/productcatalog/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/productcatalog

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../../../..

Expand Down
2 changes: 1 addition & 1 deletion examples/online-boutique/services/shipping/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ftl/shipping

go 1.21.5
go 1.21.6

replace github.com/TBD54566975/ftl => ../../../..

Expand Down
2 changes: 1 addition & 1 deletion examples/time/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ftl/time

go 1.21.5
go 1.21.6

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ftl

go 1.21.5
go 1.21.6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ftl/{{ .Name }}

go 1.21.5
go 1.21.6

require github.com/TBD54566975/ftl latest
1 change: 0 additions & 1 deletion integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
const integrationTestTimeout = time.Second * 60

func TestIntegration(t *testing.T) {
t.Skip()
tmpDir := t.TempDir()

cwd, err := os.Getwd()
Expand Down

0 comments on commit d73eaa1

Please sign in to comment.