Skip to content

Commit

Permalink
revise for Go 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
AbbyDeng committed May 3, 2021
1 parent d30ae97 commit cab9e32
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
15 changes: 11 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
module gorm.io/playground

go 1.14
go 1.16

require (
gorm.io/driver/mysql v1.0.5
github.com/denisenkom/go-mssqldb v0.10.0 // indirect
github.com/jackc/pgproto3/v2 v2.0.7 // indirect
github.com/jackc/pgx/v4 v4.11.0 // indirect
github.com/mattn/go-sqlite3 v1.14.7 // indirect
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gorm.io/driver/mysql v1.0.6
gorm.io/driver/postgres v1.0.8
gorm.io/driver/sqlite v1.1.4
gorm.io/driver/sqlserver v1.0.6
gorm.io/gorm v1.21.3
gorm.io/driver/sqlserver v1.0.7
gorm.io/gorm v1.21.9
)

replace gorm.io/gorm => ./gorm
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("vim-go")
}
5 changes: 1 addition & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ fi

[ -d gorm ] || (echo "git clone --depth 1 -b $(cat main_test.go | grep GORM_BRANCH | awk '{print $3}') $(cat main_test.go | grep GORM_REPO | awk '{print $3}')"; git clone --depth 1 -b $(cat main_test.go | grep GORM_BRANCH | awk '{print $3}') $(cat main_test.go | grep GORM_REPO | awk '{print $3}'))

cp go.mod go.mod.bak
sed '/gorm.io\/driver/d' go.mod.bak > go.mod
go get -u ./...

for dialect in "${dialects[@]}" ; do
if [ "$GORM_DIALECT" = "" ] || [ "$GORM_DIALECT" = "${dialect}" ]
Expand All @@ -24,5 +23,3 @@ for dialect in "${dialects[@]}" ; do
fi
fi
done

mv go.mod.bak go.mod

0 comments on commit cab9e32

Please sign in to comment.