Skip to content

Commit a891a31

Browse files
any-sdk-shift (#504)
Summary: - Migrate auth to `any-sdk`. - Migrate many constants to `any-sdk`. - Migrate bulk of networkikng to `any-sdk`. - Migrate logging package to `any-sdk`. - Migrate independent DTOs to `any-sdk`. - All `openapi` logic now via `any-sdk`.
1 parent 154ba8b commit a891a31

File tree

123 files changed

+254
-2100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+254
-2100
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
- build*
1010
pull_request:
1111

12+
13+
env:
14+
GOLANGCI_LINT_VERSION: ${{ vars.GOLANGCI_LINT_VERSION == '' && 'v1.59.1' || vars.GOLANGCI_LINT_VERSION }}
15+
DEFAULT_STEP_TIMEOUT: ${{ vars.DEFAULT_STEP_TIMEOUT_MIN == '' && '20' || vars.DEFAULT_STEP_TIMEOUT_MIN }}
16+
1217
jobs:
1318
lint:
1419
runs-on: ubuntu-latest
@@ -31,4 +36,5 @@ jobs:
3136
- name: Run golangci-lint
3237
uses: golangci/[email protected]
3338
with:
34-
version: 'v1.59.1'
39+
version: ${{ env.GOLANGCI_LINT_VERSION }}
40+
args: --timeout ${{ env.DEFAULT_STEP_TIMEOUT }}m

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,7 @@ issues:
318318
- gosec
319319
- noctx
320320
- revive
321-
- wrapcheck
321+
- wrapcheck
322+
output:
323+
formats:
324+
- format: colored-line-number

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21.5-bullseye AS sourceprep
1+
FROM golang:1.22-bullseye AS sourceprep
22

33
ENV SRC_DIR=/work/stackql/src
44

go.mod

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
module github.com/stackql/stackql
22

3-
go 1.21.5
3+
go 1.22
4+
5+
toolchain go1.22.0
46

57
require (
6-
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.2.0
7-
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0
88
github.com/DATA-DOG/go-sqlmock v1.5.1
9-
github.com/aws/aws-sdk-go v1.28.8
109
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
11-
github.com/getkin/kin-openapi v0.88.0
1210
github.com/google/go-jsonnet v0.17.0
1311
github.com/jackc/pgtype v1.10.0
1412
github.com/jackc/pgx/v5 v5.0.4
@@ -21,17 +19,14 @@ require (
2119
github.com/spf13/cobra v1.4.0
2220
github.com/spf13/pflag v1.0.5
2321
github.com/spf13/viper v1.10.1
24-
github.com/stackql/any-sdk v0.0.4-alpha07
22+
github.com/stackql/any-sdk v0.0.5-alpha10
2523
github.com/stackql/go-suffix-map v0.0.1-alpha01
2624
github.com/stackql/psql-wire v0.1.1-alpha07
2725
github.com/stackql/stackql-parser v0.0.14-alpha04
28-
github.com/stretchr/testify v1.8.4
29-
github.com/xo/dburl v0.12.4
30-
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
31-
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
26+
github.com/stretchr/testify v1.10.0
27+
golang.org/x/sync v0.10.0
3228
gonum.org/v1/gonum v0.11.0
3329
gopkg.in/yaml.v2 v2.4.0
34-
gopkg.in/yaml.v3 v3.0.1
3530
gotest.tools v2.2.0+incompatible
3631
)
3732

@@ -40,15 +35,18 @@ require (
4035
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
4136
github.com/99designs/keyring v1.2.1 // indirect
4237
github.com/Azure/azure-pipeline-go v0.2.3 // indirect
43-
github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect
38+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 // indirect
39+
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.1 // indirect
40+
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
4441
github.com/Azure/azure-storage-blob-go v0.15.0 // indirect
45-
github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect
42+
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 // indirect
4643
github.com/Masterminds/semver v1.4.2 // indirect
4744
github.com/PaesslerAG/gval v1.0.0 // indirect
4845
github.com/PaesslerAG/jsonpath v0.1.1 // indirect
4946
github.com/antchfx/xmlquery v1.3.10 // indirect
5047
github.com/antchfx/xpath v1.2.0 // indirect
5148
github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect
49+
github.com/aws/aws-sdk-go v1.55.6 // indirect
5250
github.com/aws/aws-sdk-go-v2 v1.16.16 // indirect
5351
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.8 // indirect
5452
github.com/aws/aws-sdk-go-v2/credentials v1.12.20 // indirect
@@ -68,17 +66,18 @@ require (
6866
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
6967
github.com/fsnotify/fsnotify v1.5.1 // indirect
7068
github.com/gabriel-vasile/mimetype v1.4.1 // indirect
69+
github.com/getkin/kin-openapi v0.88.0 // indirect
7170
github.com/ghodss/yaml v1.0.0 // indirect
7271
github.com/go-openapi/jsonpointer v0.19.5 // indirect
7372
github.com/go-openapi/swag v0.21.1 // indirect
7473
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
75-
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
74+
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
7675
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
7776
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
7877
github.com/golang/protobuf v1.5.2 // indirect
7978
github.com/google/flatbuffers v2.0.8+incompatible // indirect
80-
github.com/google/go-cmp v0.5.8 // indirect
81-
github.com/google/uuid v1.3.0 // indirect
79+
github.com/google/go-cmp v0.6.0 // indirect
80+
github.com/google/uuid v1.6.0 // indirect
8281
github.com/gorilla/mux v1.8.0 // indirect
8382
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
8483
github.com/hashicorp/hcl v1.0.0 // indirect
@@ -97,34 +96,36 @@ require (
9796
github.com/mtibben/percent v0.2.1 // indirect
9897
github.com/pelletier/go-toml v1.9.4 // indirect
9998
github.com/pierrec/lz4/v4 v4.1.16 // indirect
100-
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
99+
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
101100
github.com/pkg/errors v0.9.1 // indirect
102101
github.com/pmezard/go-difflib v1.0.0 // indirect
103102
github.com/rivo/uniseg v0.2.0 // indirect
104-
github.com/rogpeppe/go-internal v1.9.0 // indirect
105103
github.com/spf13/afero v1.6.0 // indirect
106104
github.com/spf13/cast v1.4.1 // indirect
107105
github.com/spf13/jwalterweatherman v1.1.0 // indirect
108106
github.com/stackql/stackql-provider-registry v0.0.1-rc06 // indirect
109-
github.com/stretchr/objx v0.5.1 // indirect
107+
github.com/stretchr/objx v0.5.2 // indirect
110108
github.com/subosito/gotenv v1.2.0 // indirect
109+
github.com/xo/dburl v0.23.2 // indirect
111110
go.uber.org/atomic v1.9.0 // indirect
112111
go.uber.org/multierr v1.7.0 // indirect
113112
go.uber.org/zap v1.21.0 // indirect
114-
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be // indirect
113+
golang.org/x/crypto v0.32.0 // indirect
115114
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
116-
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
117-
golang.org/x/net v0.0.0-20221002022538-bcab6841153b // indirect
118-
golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 // indirect
119-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
120-
golang.org/x/text v0.3.8 // indirect
121-
golang.org/x/tools v0.1.12 // indirect
115+
golang.org/x/mod v0.17.0 // indirect
116+
golang.org/x/net v0.34.0 // indirect
117+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
118+
golang.org/x/sys v0.29.0 // indirect
119+
golang.org/x/term v0.28.0 // indirect
120+
golang.org/x/text v0.21.0 // indirect
121+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
122122
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
123123
google.golang.org/appengine v1.6.7 // indirect
124124
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
125125
google.golang.org/grpc v1.45.0 // indirect
126126
google.golang.org/protobuf v1.28.0 // indirect
127127
gopkg.in/ini.v1 v1.66.2 // indirect
128+
gopkg.in/yaml.v3 v3.0.1 // indirect
128129
)
129130

130131
replace github.com/chzyer/readline => github.com/stackql/readline v0.0.2-alpha05

0 commit comments

Comments
 (0)