Skip to content

Commit

Permalink
Update to go1.15.7, removed chapsuk/golang docker image usage (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
chapsuk authored Feb 6, 2021
1 parent 02bd01e commit 2850494
Show file tree
Hide file tree
Showing 323 changed files with 48,440 additions and 89,408 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
language: go

go:
- 1.12.x
- 1.15.x

env:
global:
- GO111MODULE=on

services:
- mysql
- postgres
- postgresql

before_install:
- mysql -e "CREATE DATABASE miga;"
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM chapsuk/golang:1.12.3
FROM golang:1.15.7-alpine3.13
RUN apk add make
ADD . /go/src/miga
WORKDIR /go/src/miga
RUN make build
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME = miga
VERSION ?= v0.7.2
VERSION ?= v0.7.3
PG_CONTAINER_NAME = miga-pg
MYSQL_CONTAINER_NAME = miga-mysql
IMAGE_NAME = chapsuk/$(NAME)
Expand Down
1 change: 1 addition & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ var pgCredentialsTable = []testCase{
Options: "",
},
invalidDSN: true,
shouldErr: true,
dsn: "postgres://foo:bar/@127.0.0.1:11132/test?",
},
}
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module miga

go 1.12
go 1.15

require (
github.com/BurntSushi/toml v0.3.1 // indirect
Expand All @@ -10,11 +10,11 @@ require (
github.com/im-kulikov/migrate v0.1.0
github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a // indirect
github.com/lib/pq v1.0.0
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
github.com/onsi/ginkgo v1.15.0 // indirect
github.com/onsi/gomega v1.10.5 // indirect
github.com/pkg/errors v0.8.1
github.com/pressly/goose v2.6.0+incompatible
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a
github.com/smartystreets/goconvey v1.6.4
github.com/spf13/viper v1.3.2
go.uber.org/atomic v1.3.2 // indirect
go.uber.org/multierr v1.1.0 // indirect
Expand Down
76 changes: 68 additions & 8 deletions go.sum

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions tests/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@ func TestConfig(t *testing.T) {
err = os.RemoveAll(dir)
So(err, ShouldBeNil)
})

Convey("Miga should fail up cmd with empty DSN", func() {
ctx := cli.NewContext(nil, &flag.FlagSet{}, nil)

err = commands.Up(ctx, d)
So(err, ShouldNotBeNil)

err = commands.Up(ctx, s)
So(err, ShouldNotBeNil)
})
})
}

Expand Down
9 changes: 8 additions & 1 deletion vendor/github.com/fsnotify/fsnotify/.editorconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/fsnotify/fsnotify/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions vendor/github.com/fsnotify/fsnotify/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/fsnotify/fsnotify/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 61 additions & 10 deletions vendor/github.com/fsnotify/fsnotify/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion vendor/github.com/fsnotify/fsnotify/fsnotify.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/github.com/fsnotify/fsnotify/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/fsnotify/fsnotify/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/fsnotify/fsnotify/inotify_poller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 0 additions & 93 deletions vendor/github.com/lib/pq/oid/gen.go

This file was deleted.

Loading

0 comments on commit 2850494

Please sign in to comment.