Skip to content

Makefile: update target #449

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
Apr 9, 2020
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ test:
sqlc-dev:
go build -o ~/bin/sqlc-dev --tags=exp ./cmd/sqlc/

regen:
regen: sqlc-dev
./scripts/regenerate.sh
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ scopes the override behavior to just a single package:

```yaml
version: "1"
packages:
packages:
- overrides: [...]
```

Expand Down Expand Up @@ -464,7 +464,7 @@ go build -o ~/go/bin/sqlc-dev ./cmd/sqlc
### Running Tests

To run the tests, include the `exp` tag. Without this tag, a few tests will
fail.
fail.

```
go test --tags=exp ./...
Expand Down Expand Up @@ -494,9 +494,12 @@ If you need to update a large number of expected test output in the
`internal/endtoend/testdata` directory, run the `regenerate.sh` script.

```
./scripts/regenerate.sh
make regen
```

Note that this uses the `sqlc-dev` binary, not `sqlc` so make sure you have an
up to date `sqlc-dev` binary.

## Acknowledgements

sqlc was inspired by [PugSQL](https://pugsql.org/) and
Expand Down