Skip to content

fix(scripts): Remove test output regeneration script #3105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.