Skip to content
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

Bump go.uber.org/zap from 1.21.0 to 1.27.0 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 20, 2025

Bumps go.uber.org/zap from 1.21.0 to 1.27.0.

Release notes

Sourced from go.uber.org/zap's releases.

v1.27.0

Enhancements:

  • #1378[]: Add WithLazy method for SugaredLogger.
  • #1399[]: zaptest: Add NewTestingWriter for customizing TestingWriter with more flexibility than NewLogger.
  • #1406[]: Add Log, Logw, Logln methods for SugaredLogger.
  • #1416[]: Add WithPanicHook option for testing panic logs.

Thanks to @​defval, @​dimmo, @​arxeiss, and @​MKrupauskas for their contributions to this release.

#1378: uber-go/zap#1378 #1399: uber-go/zap#1399 #1406: uber-go/zap#1406 #1416: uber-go/zap#1416

v1.26.0

Enhancements:

  • #1297[]: Add Dict as a Field.
  • #1319[]: Add WithLazy method to Logger which lazily evaluates the structured context.
  • #1350[]: String encoding is much (~50%) faster now.

Thanks to @​hhk7734, @​jquirke, @​cdvr1993 for their contributions to this release.

#1297: uber-go/zap#1297 #1319: uber-go/zap#1319 #1350: uber-go/zap#1350

v1.25.0

This release contains several improvements including performance, API additions, and two new experimental packages whose APIs are unstable and may change in the future.

Enhancements:

  • #1246[]: Add zap/exp/zapslog package for integration with slog.
  • #1273[]: Add Name to Logger which returns the Logger's name if one is set.
  • #1281[]: Add zap/exp/expfield package which contains helper methods Str and Strs for constructing String-like zap.Fields.
  • #1310[]: Reduce stack size on Any.

Thanks to @​knight42, @​dzakaammar, @​bcspragu, and @​rexywork for their contributions to this release.

#1246: uber-go/zap#1246 #1273: uber-go/zap#1273 #1281: uber-go/zap#1281 #1310: uber-go/zap#1310

v1.24.0

... (truncated)

Changelog

Sourced from go.uber.org/zap's changelog.

1.27.0 (20 Feb 2024)

Enhancements:

  • #1378[]: Add WithLazy method for SugaredLogger.
  • #1399[]: zaptest: Add NewTestingWriter for customizing TestingWriter with more flexibility than NewLogger.
  • #1406[]: Add Log, Logw, Logln methods for SugaredLogger.
  • #1416[]: Add WithPanicHook option for testing panic logs.

Thanks to @​defval, @​dimmo, @​arxeiss, and @​MKrupauskas for their contributions to this release.

#1378: uber-go/zap#1378 #1399: uber-go/zap#1399 #1406: uber-go/zap#1406 #1416: uber-go/zap#1416

1.26.0 (14 Sep 2023)

Enhancements:

  • #1297[]: Add Dict as a Field.
  • #1319[]: Add WithLazy method to Logger which lazily evaluates the structured context.
  • #1350[]: String encoding is much (~50%) faster now.

Thanks to @​hhk7734, @​jquirke, and @​cdvr1993 for their contributions to this release.

#1297: uber-go/zap#1297 #1319: uber-go/zap#1319 #1350: uber-go/zap#1350

1.25.0 (1 Aug 2023)

This release contains several improvements including performance, API additions, and two new experimental packages whose APIs are unstable and may change in the future.

Enhancements:

  • #1246[]: Add zap/exp/zapslog package for integration with slog.
  • #1273[]: Add Name to Logger which returns the Logger's name if one is set.
  • #1281[]: Add zap/exp/expfield package which contains helper methods Str and Strs for constructing String-like zap.Fields.
  • #1310[]: Reduce stack size on Any.

Thanks to @​knight42, @​dzakaammar, @​bcspragu, and @​rexywork for their contributions to this release.

#1246: uber-go/zap#1246 #1273: uber-go/zap#1273 #1281: uber-go/zap#1281 #1310: uber-go/zap#1310

1.24.0 (30 Nov 2022)

... (truncated)

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Update go.uber.org/zap from 1.21.0 to 1.27.0.

Enhancements:

  • String encoding performance improved by ~50%.
  • Add Dict as a Field.
  • Lazily evaluate structured context with the WithLazy method.
  • Introduce zap/exp/zapslog for slog integration.
  • Add Name method to retrieve logger name.
  • Helper methods Str and Strs for String-like fields in zap/exp/expfield.
  • Reduce stack size on Any.
  • Add WithLazy method for SugaredLogger.
  • Introduce NewTestingWriter for more flexible testing.
  • Add Log, Logw, and Logln methods to SugaredLogger.
  • Test panic logs with WithPanicHook option.

Tests:

  • Test with Go 1.22.

Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.21.0 to 1.27.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](uber-go/zap@v1.21.0...v1.27.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jan 20, 2025
Copy link

sourcery-ai bot commented Jan 20, 2025

Reviewer's Guide by Sourcery

This pull request bumps the go.uber.org/zap dependency from version 1.21.0 to 1.27.0. This includes several new features and performance improvements.

Class diagram for updated Zap Logger interfaces

classDiagram
    class Logger {
      +WithLazy() Logger
      +Name() string
    }
    class SugaredLogger {
      +WithLazy() SugaredLogger
      +Log(level, args...)
      +Logw(level, msg, keysAndValues...)
      +Logln(level, args...)
    }
    class Field {
      +Dict() Field
    }
    class TestingWriter {
      +NewTestingWriter()
    }

    Logger -- SugaredLogger
    Logger -- Field

    note for Logger "Added WithLazy() for lazy context evaluation"
    note for SugaredLogger "Added new logging methods with level parameter"
    note for Field "Added Dict as a new field type"
    note for TestingWriter "New public testing writer with more flexibility"
Loading

File-Level Changes

Change Details Files
Updated the go.uber.org/zap dependency.
  • Updated go.uber.org/zap from v1.21.0 to v1.27.0 in go.mod.
  • Updated go.uber.org/zap checksum in go.sum.
go.mod
go.sum
Updated the github.com/stretchr/testify dependency.
  • Updated github.com/stretchr/testify from v1.7.2 to v1.8.1 in go.mod.
  • Updated github.com/stretchr/testify checksum in go.sum.
go.mod
go.sum
Updated the github.com/stretchr/objx dependency.
  • Updated github.com/stretchr/objx from v0.2.0 to v0.5.0 in go.mod.
  • Updated github.com/stretchr/objx checksum in go.sum.
go.mod
go.sum
Updated the go.uber.org/multierr dependency.
  • Updated go.uber.org/multierr from v1.7.0 to v1.10.0 in go.mod.
  • Updated go.uber.org/multierr checksum in go.sum.
go.mod
go.sum

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

coderabbitai bot commented Jan 20, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

Copy link

codiumai-pr-agent-free bot commented Jan 20, 2025

CI Feedback 🧐

(Feedback updated until commit 2908534)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: Integration Test

Failed stage: Run integration tests [❌]

Failed test name: github.com/khulnasoft/fanal/test/integration

Failure summary:

The action failed due to a Go module version compatibility issue:

  • The module go.uber.org/multierr@v1.10.0 requires Go 1.19
  • The code tries to use atomic.Bool which is undefined in the current Go version
  • This caused the build to fail during integration tests

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    667:  go: downloading golang.org/x/sync v0.0.0-20220513210516-0976fa681c29
    668:  go: downloading github.com/google/go-cmp v0.5.8
    669:  go: downloading github.com/opencontainers/go-digest v1.0.0
    670:  go: downloading github.com/spf13/pflag v1.0.5
    671:  go: downloading github.com/klauspost/compress v1.15.4
    672:  go: downloading github.com/vbatts/tar-split v0.11.2
    673:  go: downloading github.com/docker/distribution v2.8.1+incompatible
    674:  go: downloading github.com/docker/docker v20.10.16+incompatible
    675:  go: downloading github.com/pkg/errors v0.9.1
    ...
    
    718:  go: downloading google.golang.org/grpc v1.47.0
    719:  go: downloading github.com/containerd/fifo v1.0.0
    720:  go: downloading github.com/containerd/typeurl v1.0.3-0.20220422153119-7f6e6d160d67
    721:  go: downloading github.com/moby/sys/signal v0.7.0
    722:  go: downloading github.com/opencontainers/image-spec v1.0.3-0.20220303224323-02efb9a75ee1
    723:  go: downloading github.com/opencontainers/runtime-spec v1.0.3-0.20220311020903-6969a0a09ab1
    724:  go: downloading github.com/opencontainers/selinux v1.10.1
    725:  go: downloading github.com/knqyf263/nested v0.0.1
    726:  go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
    727:  go: downloading golang.org/x/exp v0.0.0-20220407100705-7b9b53b0aca4
    728:  go: downloading github.com/aws/aws-sdk-go v1.44.25
    729:  go: downloading github.com/go-redis/redis/v8 v8.11.5
    730:  go: downloading github.com/hashicorp/go-multierror v1.1.1
    ...
    
    924:  go: downloading github.com/russross/blackfriday/v2 v2.1.0
    925:  go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
    926:  go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
    927:  go: downloading github.com/go-openapi/jsonreference v0.19.5
    928:  go: downloading github.com/go-openapi/swag v0.19.14
    929:  go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
    930:  go: downloading github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
    931:  go: downloading github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca
    932:  go: downloading github.com/go-errors/errors v1.0.1
    ...
    
    953:  go: downloading github.com/beorn7/perks v1.0.1
    954:  go: downloading github.com/prometheus/procfs v0.7.3
    955:  go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
    956:  go: downloading modernc.org/libc v1.16.7
    957:  go: downloading modernc.org/memory v1.1.1
    958:  go: downloading modernc.org/mathutil v1.4.1
    959:  go: downloading github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0
    960:  # go.uber.org/multierr
    961:  ##[error]../../../go/pkg/mod/go.uber.org/multierr@v1.10.0/error.go:224:20: undefined: atomic.Bool
    962:  note: module requires Go 1.19
    963:  FAIL	github.com/khulnasoft/fanal/test/integration [build failed]
    964:  ?   	github.com/khulnasoft/fanal/test/integration/docker	[no test files]
    965:  FAIL
    966:  make: *** [Makefile:30: test-integration] Error 2
    967:  ##[error]Process completed with exit code 2.
    

    @dependabot dependabot bot changed the base branch from main to master January 31, 2025 11:46
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    dependencies Pull requests that update a dependency file go Pull requests that update Go code
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    0 participants