Skip to content

Commit

Permalink
chore(readme): update install code fences (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
greyscaled authored Oct 13, 2023
1 parent 3482c2f commit fe8fe97
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,23 @@ Goose supports [embedding SQL migrations](#embedded-sql-migrations), which means

# Install

$ go install github.com/pressly/goose/v3/cmd/goose@latest
```shell
go install github.com/pressly/goose/v3/cmd/goose@latest
```

This will install the `goose` binary to your `$GOPATH/bin` directory.

For a lite version of the binary without DB connection dependent commands, use the exclusive build tags:

$ go build -tags='no_postgres no_mysql no_sqlite3' -o goose ./cmd/goose
```shell
go build -tags='no_postgres no_mysql no_sqlite3' -o goose ./cmd/goose
```

For macOS users `goose` is available as a [Homebrew Formulae](https://formulae.brew.sh/formula/goose#default):

$ brew install goose
```shell
brew install goose
```

See the docs for more [installation instructions](https://pressly.github.io/goose/installation/).

Expand Down

0 comments on commit fe8fe97

Please sign in to comment.