Compare commits

...

16 Commits

Author SHA1 Message Date
sudo pacman -Syu c460e7e7cc chore: update make 2023-02-26 00:03:14 +07:00
sudo pacman -Syu 808701ee5f chore: update lint 2023-02-26 00:03:14 +07:00
sudo pacman -Syu b63c2af0ad chore: bump go 1.20 github action 2023-02-26 00:03:14 +07:00
dependabot[bot] a60dafd0f4 chore(deps): bump github.com/k1LoW/tbls from 1.62.0 to 1.62.1
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.62.0 to 1.62.1.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.62.0...v1.62.1)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 23:44:37 +07:00
dependabot[bot] ef0aa5936d chore(deps): bump golang.org/x/net from 0.5.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-18 12:03:38 +07:00
dependabot[bot] aab6721b63 chore(deps): bump github.com/urfave/cli/v2 from 2.24.3 to 2.24.4
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.24.3 to 2.24.4.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.24.3...v2.24.4)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 16:14:54 +07:00
dependabot[bot] d4c462cf94 chore(deps): bump github.com/k1LoW/tbls from 1.61.0 to 1.62.0
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.61.0 to 1.62.0.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.61.0...v1.62.0)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 15:56:53 +07:00
dependabot[bot] 973e3ec0b4 chore(deps): bump github.com/k1LoW/tbls from 1.60.0 to 1.61.0
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.60.0 to 1.61.0.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.60.0...v1.61.0)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 15:44:45 +07:00
dependabot[bot] c4ed2511f7 chore(deps): bump github.com/urfave/cli/v2 from 2.24.2 to 2.24.3
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.24.2 to 2.24.3.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.24.2...v2.24.3)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 17:49:55 +07:00
dependabot[bot] 4dfeded6f6 chore(deps): bump github.com/urfave/cli/v2 from 2.24.1 to 2.24.2
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.24.1 to 2.24.2.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.24.1...v2.24.2)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 16:04:13 +07:00
dependabot[bot] 24f57823fe chore(deps): bump github.com/k1LoW/tbls from 1.59.0 to 1.60.0
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.59.0 to 1.60.0.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.59.0...v1.60.0)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 16:31:55 +07:00
dependabot[bot] a4911cf857 chore(deps): bump github.com/urfave/cli/v2 from 2.23.6 to 2.24.1
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.23.6 to 2.24.1.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.23.6...v2.24.1)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 20:04:12 +07:00
dependabot[bot] 1250b9e6ca chore(deps): bump github.com/k1LoW/tbls from 1.58.0 to 1.59.0
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.58.0 to 1.59.0.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.58.0...v1.59.0)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 15:32:43 +07:00
dependabot[bot] 88362bf8de chore(deps): bump github.com/k1LoW/tbls from 1.56.9 to 1.58.0
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.56.9 to 1.58.0.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.56.9...v1.58.0)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 17:05:40 +07:00
dependabot[bot] 6c0a424dce chore(deps): bump github.com/brianvoe/gofakeit/v6 from 6.19.0 to 6.20.1
Bumps [github.com/brianvoe/gofakeit/v6](https://github.com/brianvoe/gofakeit) from 6.19.0 to 6.20.1.
- [Release notes](https://github.com/brianvoe/gofakeit/releases)
- [Commits](https://github.com/brianvoe/gofakeit/compare/v6.19.0...v6.20.1)

---
updated-dependencies:
- dependency-name: github.com/brianvoe/gofakeit/v6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-19 17:12:00 +07:00
dependabot[bot] 5512693ca0 chore(deps): bump github.com/k1LoW/tbls from 1.56.8 to 1.56.9
Bumps [github.com/k1LoW/tbls](https://github.com/k1LoW/tbls) from 1.56.8 to 1.56.9.
- [Release notes](https://github.com/k1LoW/tbls/releases)
- [Changelog](https://github.com/k1LoW/tbls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/k1LoW/tbls/compare/v1.56.8...v1.56.9)

---
updated-dependencies:
- dependency-name: github.com/k1LoW/tbls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-07 17:56:35 +07:00
6 changed files with 314 additions and 817 deletions

View File

@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- run: go test -race -failfast ./...
@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- run: go build ./cmd/populatedb
@ -43,7 +43,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- uses: golangci/golangci-lint-action@v3

View File

@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- uses: goreleaser/goreleaser-action@v2

View File

@ -1,10 +1,12 @@
run:
timeout: 2m
tests: false
skip-dirs:
- ".*test.*"
- ".*mock.*"
- ".*generated.*"
- ".*example.*"
- ".*utils.*"
skip-files:
- ".*Mock.*"
- ".*_mock.*"
@ -16,6 +18,7 @@ output:
linters:
disable-all: true
enable:
# Default
- errcheck
- gosimple
- govet
@ -23,31 +26,30 @@ linters:
- staticcheck
- typecheck
- unused
# Custom
- errchkjson
- errname
- errorlint
- execinquery
- forcetypeassert
- gocritic
- goerr113
- gofumpt
- gomodguard
- gosec
- importas
- makezero
- nilnil
- prealloc
- reassign
# - rowserrcheck
- sqlclosecheck
- unconvert
# - wastedassign
fast: true
linters-settings:
gosec:
excludes:
- G101
- G112
- G402
- G404
- G501
- G505
exclude-generated: true
# Default
govet:
check-shadowing: false
disable-all: true
@ -67,9 +69,17 @@ linters-settings:
- unmarshal
- unreachable
- unusedresult
staticcheck:
checks: ["all", "-SA1019"]
# Custom
gocritic:
disabled-checks:
- ifElseChain
- singleCaseSwitch
enabled-tags:
- diagnostic
- style
- performance
gosec:
exclude-generated: true
reassign:
patterns:
- ".*"

View File

@ -1,7 +1,12 @@
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build clean
all: test-color lint format
all:
go mod tidy
$(MAKE) test-color
$(MAKE) lint
$(MAKE) format
$(MAKE) build
$(MAKE) clean
test:
go test -race -failfast ./...
@ -25,8 +30,12 @@ lint:
format:
go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@latest
gofimports -w -company github.com/make-go-great .
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
build:
$(MAKE) clean
go build ./cmd/populatedb
clean:
rm -rf populatedb

133
go.mod
View File

@ -3,84 +3,105 @@ module github.com/haunt98/populatedb-go
go 1.18
require (
github.com/brianvoe/gofakeit/v6 v6.19.0
github.com/brianvoe/gofakeit/v6 v6.20.1
github.com/go-sql-driver/mysql v1.7.0
github.com/k1LoW/tbls v1.56.8
github.com/k1LoW/tbls v1.62.1
github.com/make-go-great/color-go v0.4.1
github.com/urfave/cli/v2 v2.23.6
github.com/urfave/cli/v2 v2.24.4
)
require (
cloud.google.com/go v0.102.0 // indirect
cloud.google.com/go/bigquery v1.25.0 // indirect
cloud.google.com/go/compute v1.7.0 // indirect
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/spanner v1.28.0 // indirect
cloud.google.com/go v0.107.0 // indirect
cloud.google.com/go/bigquery v1.45.0 // indirect
cloud.google.com/go/compute v1.14.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.8.0 // indirect
cloud.google.com/go/spanner v1.43.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
github.com/Azure/azure-pipeline-go v0.2.3 // indirect
github.com/Azure/azure-storage-blob-go v0.14.0 // indirect
github.com/Azure/azure-storage-blob-go v0.15.0 // indirect
github.com/antonmedv/expr v1.10.3 // indirect
github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect
github.com/aquasecurity/go-version v0.0.0-20210121072130-637058cfe492 // indirect
github.com/aws/aws-sdk-go v1.42.23 // indirect
github.com/aws/aws-sdk-go-v2 v1.11.2 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.0.0 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.6.4 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.7.4 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.2 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.0.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.5.0 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.5.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.9.2 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.21.0 // indirect
github.com/aws/smithy-go v1.9.0 // indirect
github.com/aws/aws-sdk-go v1.44.184 // indirect
github.com/aws/aws-sdk-go-v2 v1.16.16 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.8 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.12.20 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.33 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.23 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.17 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.14 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.9 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.18 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.17 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.17 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.11 // indirect
github.com/aws/smithy-go v1.13.3 // indirect
github.com/buildkite/interpolate v0.0.0-20200526001904-07f35b4ae251 // indirect
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
github.com/gabriel-vasile/mimetype v1.4.0 // indirect
github.com/gertd/go-pluralize v0.1.7 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/goccy/go-yaml v1.9.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.1 // indirect
github.com/gertd/go-pluralize v0.2.1 // indirect
github.com/goccy/go-yaml v1.9.8 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/flatbuffers v2.0.5+incompatible // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/flatbuffers v2.0.8+incompatible // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-github/v49 v49.1.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/k1LoW/duration v1.1.0 // indirect
github.com/k1LoW/expand v0.1.0 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/lib/pq v1.10.4 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/k1LoW/duration v1.2.0 // indirect
github.com/k1LoW/expand v0.5.5 // indirect
github.com/k1LoW/go-github-client/v49 v49.1.3 // indirect
github.com/klauspost/compress v1.15.11 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-ieproxy v0.0.1 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/minio/pkg v1.1.9 // indirect
github.com/pierrec/lz4/v4 v4.1.12 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/minio/pkg v1.5.8 // indirect
github.com/montanaflynn/stats v0.6.6 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/pierrec/lz4/v4 v4.1.16 // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/snowflakedb/gosnowflake v1.6.5 // indirect
github.com/stretchr/testify v1.8.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/snowflakedb/gosnowflake v1.6.16 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.0.2 // indirect
github.com/xdg-go/stringprep v1.0.2 // indirect
github.com/xo/dburl v0.9.0 // indirect
github.com/xdg-go/scram v1.1.1 // indirect
github.com/xdg-go/stringprep v1.0.3 // indirect
github.com/xo/dburl v0.13.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
go.mongodb.org/mongo-driver v1.8.4 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/crypto v0.0.0-20211209193657-4570a0811e8b // indirect
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect
golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
google.golang.org/api v0.86.0 // indirect
go.mongodb.org/mongo-driver v1.11.1 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.108.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f // indirect
google.golang.org/grpc v1.47.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/grpc v1.51.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)

943
go.sum

File diff suppressed because it is too large Load Diff