-
Notifications
You must be signed in to change notification settings - Fork 36
build(deps): bump the go-mod group with 10 updates #519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
tstirrat15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
|
|
||
| vfile = *out.(*validationfile.ValidationFile) | ||
| vfile.Schema = blocks.ParsedSchema{ | ||
| vfile.Schema = blocks.SchemaWithPosition{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changed in SpiceDB in the intervening versions.
internal/printers/table.go
Outdated
| table := tablewriter.NewTable(target, | ||
| tablewriter.WithRenderer(renderer.NewBlueprint()), | ||
| tablewriter.WithRowAutoWrap(tw.WrapNone), | ||
| tablewriter.WithHeaderAutoFormat(tw.On), | ||
| tablewriter.WithHeaderAlignment(tw.AlignLeft), | ||
| tablewriter.WithRowAlignment(tw.AlignLeft), | ||
| tablewriter.WithRendition(tw.Rendition{ | ||
| Symbols: tw.NewSymbolCustom("custom").WithCenter("").WithColumn("").WithRow(""), | ||
| Settings: tw.Settings{ | ||
| Lines: tw.LinesNone, | ||
| Separators: tw.Separators{ | ||
| BetweenColumns: tw.On, | ||
| }, | ||
| }, | ||
| Borders: tw.BorderNone, | ||
| }), | ||
| tablewriter.WithTrimSpace(tw.Off), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made these updates based on the migration guide and then validated them locally. This is only used for zed context list output and I verified that it looks the same as on current main.
ebfb7f5 to
fb7636d
Compare
| table.SetNoWhiteSpace(true) | ||
| table.AppendBulk(rows) | ||
| table.Render() | ||
| table := tablewriter.NewTable(target, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add unit tests 😄
package printers
import (
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func TestPrintTable(t *testing.T) {
var buf strings.Builder
headers := []string{"CURRENT NAME", "ENDPOINT", "TOKEN", "TLS CERT"}
rows := [][]string{
{"my-cluster-1", "local-cluster.dedicated.authzed.dev:443", "sdbpk_<redacted>", "system"},
{"my-cluster-2", "localhost:50051", "<redacted>", "insecure"},
}
PrintTable(&buf, headers, rows)
output := buf.String()
expectedOutput := ` CURRENT NAME ENDPOINT TOKEN TLS CERT
my-cluster-1 local-cluster.dedicated.authzed.dev:443 sdbpk_<redacted> system
my-cluster-2 localhost:50051 <redacted> insecure
`
require.Equal(t, expectedOutput, output)
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I will do that.
fb7636d to
88faa74
Compare
Bumps the go-mod group with 10 updates: | Package | From | To | | --- | --- | --- | | [github.com/authzed/authzed-go](https://github.com/authzed/authzed-go) | `1.3.1-0.20250320210445-0cde0d8c71e2` | `1.4.0` | | [github.com/authzed/spicedb](https://github.com/authzed/spicedb) | `1.42.2-0.20250418013333-54921333ba95` | `1.44.0` | | [github.com/grpc-ecosystem/go-grpc-middleware/v2](https://github.com/grpc-ecosystem/go-grpc-middleware) | `2.3.1` | `2.3.2` | | [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) | `0.0.5` | `1.0.7` | | [github.com/samber/lo](https://github.com/samber/lo) | `1.49.1` | `1.50.0` | | [golang.org/x/net](https://github.com/golang/net) | `0.38.0` | `0.39.0` | | [golang.org/x/sync](https://github.com/golang/sync) | `0.12.0` | `0.13.0` | | [golang.org/x/term](https://github.com/golang/term) | `0.30.0` | `0.31.0` | | [google.golang.org/genproto/googleapis/rpc](https://github.com/googleapis/go-genproto) | `0.0.0-20250313205543-e70fdf4c4cb4` | `0.0.0-20250414145226-207652e42e2e` | | [google.golang.org/grpc](https://github.com/grpc/grpc-go) | `1.71.1` | `1.72.0` | Updates `github.com/authzed/authzed-go` from 1.3.1-0.20250320210445-0cde0d8c71e2 to 1.4.0 - [Release notes](https://github.com/authzed/authzed-go/releases) - [Commits](https://github.com/authzed/authzed-go/commits/v1.4.0) Updates `github.com/authzed/spicedb` from 1.42.2-0.20250418013333-54921333ba95 to 1.44.0 - [Release notes](https://github.com/authzed/spicedb/releases) - [Changelog](https://github.com/authzed/spicedb/blob/main/.goreleaser.yml) - [Commits](https://github.com/authzed/spicedb/commits/v1.44.0) Updates `github.com/grpc-ecosystem/go-grpc-middleware/v2` from 2.3.1 to 2.3.2 - [Release notes](https://github.com/grpc-ecosystem/go-grpc-middleware/releases) - [Commits](grpc-ecosystem/go-grpc-middleware@v2.3.1...v2.3.2) Updates `github.com/olekukonko/tablewriter` from 0.0.5 to 1.0.7 - [Commits](olekukonko/tablewriter@v0.0.5...v1.0.7) Updates `github.com/samber/lo` from 1.49.1 to 1.50.0 - [Release notes](https://github.com/samber/lo/releases) - [Commits](samber/lo@v1.49.1...v1.50.0) Updates `golang.org/x/net` from 0.38.0 to 0.39.0 - [Commits](golang/net@v0.38.0...v0.39.0) Updates `golang.org/x/sync` from 0.12.0 to 0.13.0 - [Commits](golang/sync@v0.12.0...v0.13.0) Updates `golang.org/x/term` from 0.30.0 to 0.31.0 - [Commits](golang/term@v0.30.0...v0.31.0) Updates `google.golang.org/genproto/googleapis/rpc` from 0.0.0-20250313205543-e70fdf4c4cb4 to 0.0.0-20250414145226-207652e42e2e - [Commits](https://github.com/googleapis/go-genproto/commits) Updates `google.golang.org/grpc` from 1.71.1 to 1.72.0 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.71.1...v1.72.0) --- updated-dependencies: - dependency-name: github.com/authzed/authzed-go dependency-version: 1.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: github.com/authzed/spicedb dependency-version: 1.44.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: github.com/grpc-ecosystem/go-grpc-middleware/v2 dependency-version: 2.3.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-mod - dependency-name: github.com/olekukonko/tablewriter dependency-version: 1.0.7 dependency-type: direct:production update-type: version-update:semver-major dependency-group: go-mod - dependency-name: github.com/samber/lo dependency-version: 1.50.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: golang.org/x/net dependency-version: 0.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: golang.org/x/sync dependency-version: 0.13.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: golang.org/x/term dependency-version: 0.31.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: google.golang.org/genproto/googleapis/rpc dependency-version: 0.0.0-20250414145226-207652e42e2e dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-mod - dependency-name: google.golang.org/grpc dependency-version: 1.72.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod ... Signed-off-by: dependabot[bot] <support@github.com>
88faa74 to
30835c6
Compare
Bumps the go-mod group with 10 updates:
1.3.1-0.20250320210445-0cde0d8c71e21.4.01.42.2-0.20250418013333-54921333ba951.44.02.3.12.3.20.0.51.0.71.49.11.50.00.38.00.39.00.12.00.13.00.30.00.31.00.0.0-20250313205543-e70fdf4c4cb40.0.0-20250414145226-207652e42e2e1.71.11.72.0Updates
github.com/authzed/authzed-gofrom 1.3.1-0.20250320210445-0cde0d8c71e2 to 1.4.0Release notes
Sourced from github.com/authzed/authzed-go's releases.
Commits
Updates
github.com/authzed/spicedbfrom 1.42.2-0.20250418013333-54921333ba95 to 1.44.0Release notes
Sourced from github.com/authzed/spicedb's releases.
... (truncated)
Commits
Updates
github.com/grpc-ecosystem/go-grpc-middleware/v2from 2.3.1 to 2.3.2Release notes
Sourced from github.com/grpc-ecosystem/go-grpc-middleware/v2's releases.
Commits
26edc26update module for protovalidate (#757)0e172e4chore: fix some typos (#755)Updates
github.com/olekukonko/tablewriterfrom 0.0.5 to 1.0.7Commits
fbb970fMerge pull request #273 from olekukonko/alignment01bf4acminor cleanup and return WithSymbols33047f3update readme66e06eeadd debug info3b62115improve deprecate documentation9eed19cseparate options from config1a2c27efix more bugsc694c13improve guide8140e59improve builder523cf91add support for align none update #272Updates
github.com/samber/lofrom 1.49.1 to 1.50.0Release notes
Sourced from github.com/samber/lo's releases.
Commits
5c8d84bbump v1.50.04a43ff6Add ElementsMatch, ElementsMatchBy (#589)0bc568aUpdate README.mdc7a67cafeat(mutable): adding Map, MapI, Filter, FilterI (#577)e5dba6ffeat: adding FilterMapToSlice (#623)e343af0docs: add play link for ChunkEntries example in README (#600)38f6750optimization: preallocate result in FilterMap (#622)d91b19fchore: lint 💄964a3c7chore(ci): test more go version0f7f47efix: fix backward compatibility to go 1.18Updates
golang.org/x/netfrom 0.38.0 to 0.39.0Commits
b8d8877go.mod: update golang.org/x dependenciesUpdates
golang.org/x/syncfrom 0.12.0 to 0.13.0Commits
396f3a0errgroup: document calling Go before WaitUpdates
golang.org/x/termfrom 0.30.0 to 0.31.0Commits
5d2308bgo.mod: update golang.org/x dependenciese770dddx/term: disabling auto-completion around GetPassword()Updates
google.golang.org/genproto/googleapis/rpcfrom 0.0.0-20250313205543-e70fdf4c4cb4 to 0.0.0-20250414145226-207652e42e2eCommits
Updates
google.golang.org/grpcfrom 1.71.1 to 1.72.0Release notes
Sourced from google.golang.org/grpc's releases.
Commits
a43eba6Change version to 1.72.0 (#8218)48f48c1balancer/pickfirstleaf: Avoid reading Address.Metadata (#8227) (#8259)fd6f585Cherry-pick #8159 and #8243 to v1.72.x (#8255)79ca174stats/opentelemetry: fix trace attributes message sequence numbers to start f...57a2605xdsclient: fix TestServerFailureMetrics_BeforeResponseRecv test to wait for w...5edab9exdsclient: add grpc.xds_client.server_failure counter mertric (#8203)78ba661regenerate protos (#8208)6819ed7delegatingresolver: Stop calls into delegates once the parent resolver is clo...a51009dresolver: convert EndpointMap to use generics (#8189)b0d1203resolver: create AddressMapV2 with generics to replace AddressMap (#8187)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions