Skip to content

Commit

Permalink
generated => durable
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Sep 25, 2023
1 parent 34891d7 commit 976efb6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions compiler/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
GO ?= go

TARGET = \
testdata/coroutine_generated.go \
testdata/testdata_generated.go
testdata.source = testdata/coroutine.go testdata/testdata.go
testdata.target = $(testdata.source:.go=_durable.go)

test: clean generate
$(GO) test ./...
$(GO) test -tags durable ./...

generate: coroc
PATH="$$(pwd):$$PATH" $(GO) generate ./testdata
$(GO) fmt $(TARGET) || exit 0
$(GO) fmt $(testdata.target) || exit 0

coroc:
$(GO) build -o $@ ./cmd/coroc

clean:
$(RM) coroc $(TARGET)
$(RM) coroc $(testdata.target)

.PHONY: clean generate test
2 changes: 1 addition & 1 deletion compiler/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (c *compiler) compilePackage(p *packages.Package, colors functionColors) er
gen = addImports(p, gen)

outputPath := strings.TrimSuffix(p.GoFiles[i], ".go")
outputPath += "_generated.go"
outputPath += "_durable.go"

if err := c.writeFile(outputPath, gen, func(expr constraint.Expr) constraint.Expr {
return withBuildTag(expr, buildTag)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 976efb6

Please sign in to comment.