chore: add changelog and update goose version (#544)

pull/530/merge
Michael Fridman 2023-06-29 12:04:32 -04:00 committed by GitHub
parent 7dcddde25a
commit d21bf4fef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 7 deletions

9
CHANGELOG.md Normal file
View File

@ -0,0 +1,9 @@
# Changelog
## [Unreleased]
- Fix `up` and `up -allowing-missing` behavior
- Fix empty version in log output
- Add new `context.Context`-aware functions and methods
[Unreleased]: https://github.com/pressly/goose/compare/v3.11.2...HEAD

View File

@ -44,9 +44,9 @@ docker-cleanup:
docker-start-postgres:
docker run --rm -d \
-e POSTGRES_USER=${GOOSE_POSTGRES_DB_USER} \
-e POSTGRES_PASSWORD=${GOOSE_POSTGRES_PASSWORD} \
-e POSTGRES_DB=${GOOSE_POSTGRES_DBNAME} \
-p ${GOOSE_POSTGRES_PORT}:5432 \
-e POSTGRES_USER=${POSTGRES_DB_USER} \
-e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} \
-e POSTGRES_DB=${POSTGRES_DBNAME} \
-p ${POSTGRES_PORT}:5432 \
-l goose_test \
postgres:14-alpine -c log_statement=all

View File

@ -37,7 +37,7 @@ var (
noColor = flags.Bool("no-color", false, "disable color output (NO_COLOR env variable supported)")
)
var (
gooseVersion = ""
gooseVersion = "v3.12.0-dev"
)
func main() {
@ -48,10 +48,11 @@ func main() {
}
if *version {
if buildInfo, ok := debug.ReadBuildInfo(); ok && buildInfo != nil && gooseVersion == "" {
buildInfo, ok := debug.ReadBuildInfo()
if ok && buildInfo != nil && buildInfo.Main.Version != "(devel)" {
gooseVersion = buildInfo.Main.Version
}
fmt.Printf("goose version:%s\n", gooseVersion)
fmt.Printf("goose version: %s\n", gooseVersion)
return
}
if *verbose {