Skip to content

Commit

Permalink
enhancement: update go1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtwinkle committed Feb 13, 2023
1 parent fa94fdb commit d5c9111
Show file tree
Hide file tree
Showing 17 changed files with 110 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.20.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-cerrors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.20.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-envlookup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.20.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-utf8bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.20.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# go-utils
# go-utils

## Testing
-

```shell
task -p test
```
88 changes: 88 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
version: '3'

dotenv: ['.env', '{{.ENV}}/.env.', '{{.HOME}}/.env']

tasks:
test:
deps: [test-aws,test-cerrors,test-envlookup,test-errgroup,test-osext,test-sql-escape,test-tspb_cast,test-ulid,test-utf8bom]
test-aws:
dir: aws
cmds:
- docker compose up -d
- defer: docker compose down
- sleep 5
- go test ./...
test-cerrors:
dir: cerrors
cmds:
- go test ./...
test-envlookup:
dir: envlookup
cmds:
- go test ./...
test-errgroup:
dir: errgroup
cmds:
- go test ./...
test-osext:
dir: osext
cmds:
- go test ./...
test-sql-escape:
dir: sql-escape
cmds:
- go test ./...
test-tspb_cast:
dir: tspb_cast
cmds:
- go test ./...
test-ulid:
dir: ulid
cmds:
- go test ./...
test-utf8bom:
dir: utf8bom
cmds:
- go test ./...

go-mod-tidy:
deps: [
go-mod-tidy-aws,go-mod-tidy-cerrors,go-mod-tidy-envlookup,go-mod-tidy-errgroup,go-mod-tidy-osext,
go-mod-tidy-sql-escape,go-mod-tidy-tspb_cast,go-mod-tidy-ulid,go-mod-tidy-utf8bom,
]
go-mod-tidy-aws:
dir: aws
cmds:
- go mod tidy
go-mod-tidy-cerrors:
dir: cerrors
cmds:
- go mod tidy
go-mod-tidy-envlookup:
dir: envlookup
cmds:
- go mod tidy
go-mod-tidy-errgroup:
dir: errgroup
cmds:
- go mod tidy
go-mod-tidy-osext:
dir: osext
cmds:
- go mod tidy
go-mod-tidy-sql-escape:
dir: sql-escape
cmds:
- go mod tidy
go-mod-tidy-tspb_cast:
dir: tspb_cast
cmds:
- go mod tidy
go-mod-tidy-ulid:
dir: ulid
cmds:
- go mod tidy
go-mod-tidy-utf8bom:
dir: utf8bom
cmds:
- go mod tidy
2 changes: 1 addition & 1 deletion aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Development

### required for development
- docker-compose v2
- docker compose v2
- localstack
- minio

Expand Down
2 changes: 1 addition & 1 deletion aws/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/88labs/go-utils/aws

go 1.19
go 1.20

require (
github.com/88labs/go-utils/ulid v0.1.1
Expand Down
2 changes: 1 addition & 1 deletion cerrors/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/88labs/go-utils/cerrors

go 1.19
go 1.20

require golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
2 changes: 1 addition & 1 deletion envlookup/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/88labs/go-utils/envlookup

go 1.19
go 1.20

require (
github.com/88labs/go-utils/aws v0.6.1
Expand Down
2 changes: 1 addition & 1 deletion errgroup/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/88labs/go-utils/errgroup

go 1.19
go 1.20
2 changes: 1 addition & 1 deletion osext/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/88labs/go-utils/osext

go 1.18
go 1.20
2 changes: 1 addition & 1 deletion sql-escape/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/88labs/go-utils/sql-escape

go 1.18
go 1.20
2 changes: 1 addition & 1 deletion tspb_cast/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/88labs/go-utils/tspb_cast

go 1.18
go 1.20

require google.golang.org/protobuf v1.28.1
2 changes: 1 addition & 1 deletion ulid/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/88labs/go-utils/ulid

go 1.18
go 1.20

require github.com/oklog/ulid/v2 v2.1.0
3 changes: 1 addition & 2 deletions utf8bom/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/88labs/go-utils/utf8bom

go 1.19
go 1.20

require (
github.com/bxcodec/faker/v3 v3.8.1
Expand All @@ -10,6 +10,5 @@ require (
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 0 additions & 4 deletions utf8bom/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/bxcodec/faker/v3 v3.8.0 h1:F59Qqnsh0BOtZRC+c4cXoB/VNYDMS3R5mlSpxIap1oU=
github.com/bxcodec/faker/v3 v3.8.0/go.mod h1:gF31YgnMSMKgkvl+fyEo1xuSMbEuieyqfeslGYFjneM=
github.com/bxcodec/faker/v3 v3.8.1 h1:qO/Xq19V6uHt2xujwpaetgKhraGCapqY2CRWGD/SqcM=
github.com/bxcodec/faker/v3 v3.8.1/go.mod h1:DdSDccxF5msjFo5aO4vrobRQ8nIApg8kq3QWPEQD6+o=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -9,10 +7,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
Expand Down

0 comments on commit d5c9111

Please sign in to comment.