Skip to content

Commit

Permalink
fix(scripts): Remove test output regeneration script (#3105)
Browse files Browse the repository at this point in the history
Resolves #3097
  • Loading branch information
andrewmbenton committed Jan 4, 2024
1 parent 2b73120 commit 023ab78
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 102 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build build-endtoend test test-ci test-examples test-endtoend regen start psql mysqlsh proto
.PHONY: build build-endtoend test test-ci test-examples test-endtoend start psql mysqlsh proto

build:
go build ./...
Expand All @@ -20,9 +20,6 @@ build-endtoend:

test-ci: test-examples build-endtoend vet

regen: sqlc-dev sqlc-gen-json
go run ./scripts/regenerate/

sqlc-dev:
go build -o ~/bin/sqlc-dev ./cmd/sqlc/

Expand Down
13 changes: 0 additions & 13 deletions docs/guides/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,3 @@ MYSQL_USER root
MYSQL_ROOT_PASSWORD mysecretpassword
MYSQL_DATABASE dinotest
```

## Regenerate expected test output

If you need to update a large number of expected test output in the
`internal/endtoend/testdata` directory, run the `regenerate` script.

```
go build -o ~/go/bin/sqlc-dev ./cmd/sqlc
go run scripts/regenerate/main.go
```

Note that this uses the `sqlc-dev` binary, not `sqlc` so make sure you have an
up to date `sqlc-dev` binary.
85 changes: 0 additions & 85 deletions scripts/regenerate/main.go

This file was deleted.

0 comments on commit 023ab78

Please sign in to comment.