Skip to content

Commit b30cc95

Browse files
authored
sdk: upgrade ndc-spec v0.2.10 (#198)
1 parent 4f7a8c4 commit b30cc95

38 files changed

Lines changed: 15665 additions & 3019 deletions

.golangci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ version: "2"
22

33
linters:
44
default: all
5+
enable:
6+
- wsl_v5
57
disable:
68
- err113
79
- lll
@@ -16,6 +18,7 @@ linters:
1618
- recvcheck
1719
- funcorder
1820
- noinlineerr
21+
- wsl
1922
settings:
2023
tagliatelle:
2124
# Checks the struct tag name case.
@@ -79,7 +82,10 @@ linters:
7982
strict: false
8083
align: false
8184
sort: false
82-
85+
wsl_v5:
86+
allow-first-in-block: true
87+
allow-whole-block: false
88+
branch-max-lines: 2
8389
# Defines a set of rules to ignore issues.
8490
# It does not skip the analysis, and so does not ignore "typecheck" errors.
8591
exclusions:
@@ -109,6 +115,14 @@ linters:
109115
linters:
110116
- noctx
111117

118+
- path: schema/
119+
linters:
120+
- gocognit
121+
- gocyclo
122+
- cyclop
123+
- funlen
124+
- maintidx
125+
112126
- path: example/reference/
113127
linters:
114128
- gocognit

README.md

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ The SDK fully supports [NDC Specification v0.1.6](https://hasura.github.io/ndc-s
1111
- Connector HTTP server
1212
- Authentication
1313
- Observability with OpenTelemetry and Prometheus
14+
- [Support NDC Spec v0.2](https://github.com/hasura/ndc-spec)
1415

1516
## Prerequisites
1617

1718
- Go 1.24+
1819

19-
> Downgrade to SDK v1.x If you are using Go v1.21+
20+
> Downgrade to SDK v1.x If you are using Go v1.21+ or NDC Spec v0.1.
2021
2122
## Quick start
2223

@@ -102,44 +103,10 @@ Flags:
102103
103104
Please refer to the [NDC Spec](https://hasura.github.io/ndc-spec/) for details on implementing the Connector interface, or see [examples](./example).
104105
105-
## Observability
106+
## Documentation
106107
107-
### OpenTelemetry
108-
109-
OpenTelemetry exporter is disabled by default unless one of `--otlp-endpoint`, `--otlp-traces-endpoint` or `--otlp-metrics-endpoint` argument is set. By default, the SDK treats port `4318` as HTTP protocol and gRPC protocol for others.
110-
111-
If `--otlp-*insecure` flags are not set, the SDK can also detect TLS connections via http(s).
112-
113-
Other configurations are inherited from the [OpenTelemetry Go SDK](https://github.com/open-telemetry/opentelemetry-go). Currently the SDK supports `traces` and `metrics`. See [Environment Variable Specification](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/) and [OTLP Exporter Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/).
114-
115-
### Metrics
116-
117-
The SDK supports OTLP and Prometheus metrics exporters that is enabled by `--metrics-exporter` (`OTEL_METRICS_EXPORTER`) flag. Supported values:
118-
119-
- `none` (default): disable the exporter
120-
- `otlp`: OTLP exporter
121-
- `prometheus`: Prometheus exporter via the `/metrics` endpoint.
122-
123-
Prometheus exporter is served in the same HTTP server with the connector. If you want to run it on another port, configure the `--prometheus-port` (`OTEL_EXPORTER_PROMETHEUS_PORT`) flag.
124-
125-
#### Built-in metrics
126-
127-
| Name | Type | Description |
128-
| ------------------------------------------------ | --------- | ---------------------------------------------------------------------------- |
129-
| _(<prefix\>)_\_query_total | Counter | Total number of query requests |
130-
| _(<prefix\>)_\_query_total_time | Histogram | Total time taken to plan and execute a query |
131-
| _(<prefix\>)_\_query_explain_total | Counter | Total number of explain query requests |
132-
| _(<prefix\>)_\_query_explain_total_time | Histogram | Total time taken to plan and execute an explain query request, in seconds |
133-
| _(<prefix\>)_\_mutation_total | Counter | Total number of mutation requests |
134-
| _(<prefix\>)_\_query_mutation_total_time | Histogram | Total time taken to plan and execute a mutation request, in seconds |
135-
| _(<prefix\>)_\_mutation_explain_total | Counter | Total number of explain mutation requests |
136-
| _(<prefix\>)_\_query_mutation_explain_total_time | Histogram | Total time taken to plan and execute an explain mutation request, in seconds |
137-
138-
The prefix is empty by default. You can set the prefix for your connector by `WithMetricsPrefix` option.
139-
140-
### Logging
141-
142-
NDC Go SDK uses the standard [log/slog](https://pkg.go.dev/log/slog) that provides highly customizable and structured logging. By default, the logger is printed in JSON format and configurable level with `--log-level` (HASURA_LOG_LEVEL) flag. You can also replace it with different logging libraries that can wrap the `slog.Handler` interface, and set the logger with the `WithLogger` or `WithLoggerFunc` option.
108+
- [Observability](./docs/observability.md)
109+
- [Migrate from v1 to v2](./docs/migrate-v1-to-v2.md)
143110
144111
## Best Practices
145112

cmd/hasura-ndc-go/command/internal/templates/new/.hasura-connector/connector-metadata.yaml.tmpl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@ supportedEnvironmentVariables: []
44
commands:
55
update: hasura-ndc-go update
66
upgradeConfiguration: hasura-ndc-go update
7+
nativeToolchainDefinition:
8+
commands:
9+
start:
10+
type: ShellScript
11+
bash: |
12+
#!/usr/bin/env bash
13+
set -eu -o pipefail
14+
HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "$HASURA_DDN_NATIVE_CONNECTOR_DIR/hasura-ndc-go" serve
15+
powershell: |
16+
$ErrorActionPreference = "Stop"
17+
$env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\hasura-ndc-go.exe" serve
18+
update:
19+
type: ShellScript
20+
bash: |
21+
#!/usr/bin/env bash
22+
set -eu -o pipefail
23+
"$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/hasura-ndc-go" update
24+
powershell: |
25+
$ErrorActionPreference = "Stop"
26+
& "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\hasura-ndc-go.exe" update
27+
watch:
28+
type: ShellScript
29+
bash: |
30+
#!/usr/bin/env bash
31+
echo "Watch is not supported for this connector"
32+
exit 1
33+
powershell: |
34+
Write-Output "Watch is not supported for this connector"
35+
exit 1
736
cliPlugin:
837
name: ndc-go
938
version: {{.Version}}

cmd/hasura-ndc-go/command/internal/templates/new/connector.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var connectorCapabilities = schema.CapabilitiesResponse{
1212
Version: schema.NDCVersion,
1313
Capabilities: schema.Capabilities{
1414
Query: schema.QueryCapabilities{
15-
Variables: schema.LeafCapability{},
15+
Variables: &schema.LeafCapability{},
1616
NestedFields: schema.NestedFieldCapabilities{},
1717
},
1818
Mutation: schema.MutationCapabilities{},

cmd/hasura-ndc-go/command/internal/templates/new/go.mod.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.24
44

55
require (
66
github.com/hasura/ndc-sdk-go {{.Version}}
7-
golang.org/x/sync v0.13.0
7+
golang.org/x/sync v0.16.0
88
)

cmd/hasura-ndc-go/command/internal/testdata/basic/source/go.mod

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ require (
77
github.com/hasura/ndc-sdk-go v1.4.1
88
go.opentelemetry.io/otel v1.37.0
99
go.opentelemetry.io/otel/trace v1.37.0
10-
golang.org/x/sync v0.15.0
10+
golang.org/x/sync v0.16.0
1111
)
1212

1313
require (
1414
github.com/Masterminds/semver/v3 v3.4.0 // indirect
15-
github.com/alecthomas/kong v1.12.0 // indirect
15+
github.com/alecthomas/kong v1.12.1 // indirect
1616
github.com/beorn7/perks v1.0.1 // indirect
17-
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
17+
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
1818
github.com/cespare/xxhash/v2 v2.3.0 // indirect
1919
github.com/go-logr/logr v1.4.3 // indirect
2020
github.com/go-logr/stdr v1.2.2 // indirect
21-
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
21+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
2222
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
2323
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
24-
github.com/prometheus/client_golang v1.22.0 // indirect
24+
github.com/prometheus/client_golang v1.23.0 // indirect
2525
github.com/prometheus/client_model v0.6.2 // indirect
2626
github.com/prometheus/common v0.65.0 // indirect
2727
github.com/prometheus/procfs v0.17.0 // indirect
@@ -41,14 +41,14 @@ require (
4141
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
4242
go.opentelemetry.io/otel/sdk/log v0.13.0 // indirect
4343
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
44-
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
45-
golang.org/x/net v0.41.0 // indirect
46-
golang.org/x/sys v0.33.0 // indirect
47-
golang.org/x/text v0.26.0 // indirect
48-
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
49-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
50-
google.golang.org/grpc v1.73.0 // indirect
51-
google.golang.org/protobuf v1.36.6 // indirect
44+
go.opentelemetry.io/proto/otlp v1.7.1 // indirect
45+
golang.org/x/net v0.43.0 // indirect
46+
golang.org/x/sys v0.35.0 // indirect
47+
golang.org/x/text v0.28.0 // indirect
48+
google.golang.org/genproto/googleapis/api v0.0.0-20250811160224-6b04f9b4fc78 // indirect
49+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250811160224-6b04f9b4fc78 // indirect
50+
google.golang.org/grpc v1.74.2 // indirect
51+
google.golang.org/protobuf v1.36.7 // indirect
5252
)
5353

5454
replace github.com/hasura/ndc-sdk-go => ../../../../../../../

cmd/hasura-ndc-go/command/internal/testdata/basic/source/go.sum

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1
22
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
33
github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0=
44
github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
5-
github.com/alecthomas/kong v1.12.0 h1:oKd/0fHSdajj5PfGDd3ScvEvpVJf9mT2mb5r9xYadYM=
6-
github.com/alecthomas/kong v1.12.0/go.mod h1:p2vqieVMeTAnaC83txKtXe8FLke2X07aruPWXyMPQrU=
5+
github.com/alecthomas/kong v1.12.1 h1:iq6aMJDcFYP9uFrLdsiZQ2ZMmcshduyGv4Pek0MQPW0=
6+
github.com/alecthomas/kong v1.12.1/go.mod h1:p2vqieVMeTAnaC83txKtXe8FLke2X07aruPWXyMPQrU=
77
github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc=
88
github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
99
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
1010
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
11-
github.com/cenkalti/backoff/v5 v5.0.2 h1:rIfFVxEf1QsI7E1ZHfp/B4DF/6QBAUhmgkxc0H7Zss8=
12-
github.com/cenkalti/backoff/v5 v5.0.2/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw=
11+
github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM=
12+
github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw=
1313
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
1414
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
1515
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -19,8 +19,8 @@ github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
1919
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
2020
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
2121
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
22-
github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk=
23-
github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
22+
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
23+
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
2424
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
2525
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
2626
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
@@ -39,8 +39,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
3939
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
4040
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4141
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
42-
github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=
43-
github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0=
42+
github.com/prometheus/client_golang v1.23.0 h1:ust4zpdl9r4trLY/gSjlm07PuiBq2ynaXXlptpfy8Uc=
43+
github.com/prometheus/client_golang v1.23.0/go.mod h1:i/o0R9ByOnHX0McrTMTyhYvKE4haaf2mW08I+jGAjEE=
4444
github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk=
4545
github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=
4646
github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE=
@@ -87,26 +87,26 @@ go.opentelemetry.io/otel/sdk/metric v1.37.0 h1:90lI228XrB9jCMuSdA0673aubgRobVZFh
8787
go.opentelemetry.io/otel/sdk/metric v1.37.0/go.mod h1:cNen4ZWfiD37l5NhS+Keb5RXVWZWpRE+9WyVCpbo5ps=
8888
go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4=
8989
go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0=
90-
go.opentelemetry.io/proto/otlp v1.7.0 h1:jX1VolD6nHuFzOYso2E73H85i92Mv8JQYk0K9vz09os=
91-
go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo=
90+
go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOVAtj4=
91+
go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE=
9292
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
9393
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
94-
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=
95-
golang.org/x/net v0.41.0/go.mod h1:B/K4NNqkfmg07DQYrbwvSluqCJOOXwUjeb/5lOisjbA=
96-
golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8=
97-
golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
98-
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
99-
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
100-
golang.org/x/text v0.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M=
101-
golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA=
102-
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 h1:oWVWY3NzT7KJppx2UKhKmzPq4SRe0LdCijVRwvGeikY=
103-
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822/go.mod h1:h3c4v36UTKzUiuaOKQ6gr3S+0hovBtUrXzTG/i3+XEc=
104-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 h1:fc6jSaCT0vBduLYZHYrBBNY4dsWuvgyff9noRNDdBeE=
105-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
106-
google.golang.org/grpc v1.73.0 h1:VIWSmpI2MegBtTuFt5/JWy2oXxtjJ/e89Z70ImfD2ok=
107-
google.golang.org/grpc v1.73.0/go.mod h1:50sbHOUqWoCQGI8V2HQLJM0B+LMlIUjNSZmow7EVBQc=
108-
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
109-
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
94+
golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=
95+
golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
96+
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
97+
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
98+
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
99+
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
100+
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
101+
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
102+
google.golang.org/genproto/googleapis/api v0.0.0-20250811160224-6b04f9b4fc78 h1:jywZp58LPvDQySsCk1BlaMEhkAb1c57TOeT3v3NST/o=
103+
google.golang.org/genproto/googleapis/api v0.0.0-20250811160224-6b04f9b4fc78/go.mod h1:y2yVLIE/CSMCPXaHnSKXxu1spLPnglFLegmgdY23uuE=
104+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250811160224-6b04f9b4fc78 h1:OjEX45SgbG4tlXigPg4fhTP6R3MFf3MZ+HidmS2GN9s=
105+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250811160224-6b04f9b4fc78/go.mod h1:gw1tLEfykwDz2ET4a12jcXt4couGAm7IwsVaTy0Sflo=
106+
google.golang.org/grpc v1.74.2 h1:WoosgB65DlWVC9FqI82dGsZhWFNBSLjQ84bjROOpMu4=
107+
google.golang.org/grpc v1.74.2/go.mod h1:CtQ+BGjaAIXHs/5YS3i473GqwBBa1zGQNevxdeBEXrM=
108+
google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
109+
google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
110110
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
111111
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
112112
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=

cmd/hasura-ndc-go/command/internal/testdata/empty/source/go.mod

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ go 1.24
55
require (
66
github.com/hasura/ndc-sdk-go v1.4.1
77
go.opentelemetry.io/otel v1.37.0
8-
golang.org/x/sync v0.15.0
8+
golang.org/x/sync v0.16.0
99
)
1010

1111
require (
1212
github.com/Masterminds/semver/v3 v3.4.0 // indirect
13-
github.com/alecthomas/kong v1.12.0 // indirect
13+
github.com/alecthomas/kong v1.12.1 // indirect
1414
github.com/beorn7/perks v1.0.1 // indirect
15-
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
15+
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
1616
github.com/cespare/xxhash/v2 v2.3.0 // indirect
1717
github.com/go-logr/logr v1.4.3 // indirect
1818
github.com/go-logr/stdr v1.2.2 // indirect
19-
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
19+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
2020
github.com/google/uuid v1.6.0 // indirect
2121
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
2222
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
23-
github.com/prometheus/client_golang v1.22.0 // indirect
23+
github.com/prometheus/client_golang v1.23.0 // indirect
2424
github.com/prometheus/client_model v0.6.2 // indirect
2525
github.com/prometheus/common v0.65.0 // indirect
2626
github.com/prometheus/procfs v0.17.0 // indirect
@@ -41,14 +41,14 @@ require (
4141
go.opentelemetry.io/otel/sdk/log v0.13.0 // indirect
4242
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
4343
go.opentelemetry.io/otel/trace v1.37.0 // indirect
44-
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
45-
golang.org/x/net v0.41.0 // indirect
46-
golang.org/x/sys v0.33.0 // indirect
47-
golang.org/x/text v0.26.0 // indirect
48-
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
49-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
50-
google.golang.org/grpc v1.73.0 // indirect
51-
google.golang.org/protobuf v1.36.6 // indirect
44+
go.opentelemetry.io/proto/otlp v1.7.1 // indirect
45+
golang.org/x/net v0.43.0 // indirect
46+
golang.org/x/sys v0.35.0 // indirect
47+
golang.org/x/text v0.28.0 // indirect
48+
google.golang.org/genproto/googleapis/api v0.0.0-20250811160224-6b04f9b4fc78 // indirect
49+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250811160224-6b04f9b4fc78 // indirect
50+
google.golang.org/grpc v1.74.2 // indirect
51+
google.golang.org/protobuf v1.36.7 // indirect
5252
)
5353

5454
replace github.com/hasura/ndc-sdk-go => ../../../../../../../

0 commit comments

Comments
 (0)