Skip to content

Conversation

@red-hat-konflux
Copy link
Contributor

@red-hat-konflux red-hat-konflux bot commented Dec 16, 2025

This PR contains the following updates:

Package Change Age Confidence
dev.gaijin.team/go/golib v0.6.0 -> v0.8.0 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

GaijinEntertainment/golib (dev.gaijin.team/go/golib)

v0.8.0

Compare Source

Major release with breaking changes to logger and stacktrace packages. Please review the Breaking Changes section carefully before upgrading.

This release focuses on improving the logger and stacktrace packages with better caller capture, thread safety, and a simplified adapter interface.


⚠️ Breaking Changes
  • Change logger.New() constructor signature (a818939, dbbf7a2, ef40e6a)
    Constructor changed from New(adapter Adapter, maxLevel int) to New(adapter Adapter, opts ...Option). The maxLevel parameter is now passed via WithLevel(level) option.

  • Rework logger.Adapter interface (3e99e98)
    The Adapter interface has been simplified. Logger name and stacktrace functionality is now handled by the logger itself, with these values passed as fields.

  • Remove NopAdapter and change nil adapter handling (ac007a8)
    NopAdapter has been removed. All loggers with nil adapter are now treated as no-op loggers. No-op loggers can only be created with logger.NewNop(). logger.New() now panics if it receives a nil adapter.

  • Change logger name and error passthrough mechanism (dbbf7a2)
    Logger name and error are now passed to adapters as fields rather than handled in a special way.

  • Rework stacktrace package API (7d77230, e4d4715)
    stacktrace.Capture() renamed to stacktrace.CaptureStack(). Stack type is now read-only; modification methods have been removed.


Added
  • New logger configuration options (a818939, dbbf7a2, ef40e6a)
    Added multiple new options for configuring logger behavior:

    • WithLevel(level int) - Set maximum log level
    • WithCallerAtLevel(level int) - Enable automatic caller capture at or below specified level
    • WithCallerMapper(fn) - Custom caller frame mapping with DefaultCallerMapper provided
    • WithNameMapper(fn) - Custom logger name field mapping
    • WithNameFormatter(fn) - Custom logger name formatting (hierarchical with : or replacement strategies)
    • WithErrorMapper(fn) - Custom error field mapping
    • WithStackTraceMapper(fn) - Custom stacktrace field mapping
  • New stacktrace.CaptureCaller() function (e4d4715)
    Captures a single stack frame with specified skip. More performant for cases when only the caller's frame is required.

  • New stacktrace.Frame type (6b86721)
    Represents a single stack frame containing program counter, file path, line number, and function name. Simplified representation of runtime.Frame that is safe to store and use after stack trace capture.

  • Logger comparison method (ef40e6a)
    New logger.IsEqual() method for comparing if two loggers are functionally the same.

  • Thread-safe buffer adapter improvements (bb3745f)
    bufferadapter.LogEntries type is now thread-safe. New bufferadapter.NewWithBuffer() method allows usage of pre-existing buffer.

  • Stacktrace capture support (dbbf7a2)
    Full stacktrace capture functionality integrated into logger package.


Changed
  • Finalize logger documentation (dbbf7a2)
    Comprehensive documentation added to the logger package.

  • Improve adapter documentation (3e99e98)
    Added detailed package documentation for logrusadapter, slogadapter, and zapadapter.

  • Simplify bufferadapter.New() (bb3745f)
    Now creates and returns both adapter and buffer together for convenience.

  • Upgrade golangci-lint configuration (17f1b9c)
    Updated linter config to support golangci-lint v2.6 and fixed all lint issues.


Fixed
  • Fix logger name carrying with multiple children (ef40e6a)
    Previously, when multiple child loggers changed names, it would result in multiple fields with the same name. The new approach allows for logger name rewrites and custom logger name generation strategies.

Upgrade Guide

For Logger Users:

1. Updating logger.New() calls:

// Before (v0.7.0)
logger := logger.New(adapter, logger.LevelDebug)

// After (v0.8.0)
logger := logger.New(adapter, logger.WithLevel(logger.LevelDebug))

// Or use default level (LevelInfo) with no options
logger := logger.New(adapter)

2. Creating no-op loggers:

// Before
logger := logger.New(logger.NopAdapter{}, someLevel)

// After
logger := logger.NewNop()

3. Calling stacktrace functions:

// Before
stack := stacktrace.Capture(skip)

// After
stack := stacktrace.CaptureStack(skip)

// Or for single frame:
frame := stacktrace.CaptureCaller(skip)

4. Modifying Stack instances:

Remove any code that modifies Stack - it's now read-only. Capture the stack with the correct skip value instead.

For Adapter Implementers:

The Adapter interface has been simplified. Logger name and stacktrace functionality is now handled by the logger itself, with these values passed as fields.

Review the updated documentation in logrusadapter, slogadapter, and zapadapter packages for examples of the new implementation pattern.


Contributors

v0.7.0

Compare Source

🚀 New Features

  • testing/freeport: a testing helper package to probe and reserve free TCP/UDP ports for reliable, parallel tests.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@snyk-io
Copy link

snyk-io bot commented Dec 16, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.02%. Comparing base (181e87c) to head (09fb9a0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #705   +/-   ##
=======================================
  Coverage   49.02%   49.02%           
=======================================
  Files          20       20           
  Lines        2707     2707           
=======================================
  Hits         1327     1327           
  Misses       1250     1250           
  Partials      130      130           
Flag Coverage Δ
unit-tests 49.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 17, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 17, 2025
@red-hat-konflux red-hat-konflux bot deleted the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch December 17, 2025 05:09
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Dec 17, 2025
@red-hat-konflux red-hat-konflux bot reopened this Dec 17, 2025
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from f1b9243 to 0f22e10 Compare December 17, 2025 20:49
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 19, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 19, 2025
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Dec 19, 2025
@red-hat-konflux red-hat-konflux bot reopened this Dec 19, 2025
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 7b0ed2a to 0f22e10 Compare December 19, 2025 12:46
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 21, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 21, 2025
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Dec 22, 2025
@red-hat-konflux red-hat-konflux bot reopened this Dec 22, 2025
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 6465bbd to 0f22e10 Compare December 22, 2025 00:47
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 22, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 22, 2025
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Dec 22, 2025
@red-hat-konflux red-hat-konflux bot reopened this Dec 22, 2025
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 3cc9950 to 0f22e10 Compare December 22, 2025 12:45
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 24, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 24, 2025
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Dec 24, 2025
@red-hat-konflux red-hat-konflux bot reopened this Dec 24, 2025
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from beb6b4e to 0f22e10 Compare December 24, 2025 16:49
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 30, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 30, 2025
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Dec 30, 2025
@red-hat-konflux red-hat-konflux bot reopened this Dec 30, 2025
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 92ebb62 to 0f22e10 Compare December 30, 2025 20:55
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Dec 31, 2025
@red-hat-konflux red-hat-konflux bot closed this Dec 31, 2025
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Jan 1, 2026
@red-hat-konflux red-hat-konflux bot reopened this Jan 1, 2026
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from d571aca to 0f22e10 Compare January 1, 2026 00:43
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Jan 1, 2026
@red-hat-konflux red-hat-konflux bot closed this Jan 1, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Jan 1, 2026
@red-hat-konflux red-hat-konflux bot reopened this Jan 1, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Jan 3, 2026
@red-hat-konflux red-hat-konflux bot closed this Jan 3, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Jan 4, 2026
@red-hat-konflux red-hat-konflux bot reopened this Jan 4, 2026
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from da9327f to 0f22e10 Compare January 4, 2026 04:51
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed Jan 5, 2026
@red-hat-konflux red-hat-konflux bot closed this Jan 5, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 - autoclosed chore(deps): update module dev.gaijin.team/go/golib to v0.8.0 Jan 5, 2026
@red-hat-konflux red-hat-konflux bot reopened this Jan 5, 2026
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 61c40ab to 0f22e10 Compare January 5, 2026 12:47
@sadlerap sadlerap force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 0f22e10 to 14194cb Compare January 5, 2026 15:37
@sadlerap sadlerap enabled auto-merge January 5, 2026 15:37
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/main/dev.gaijin.team-go-golib-0.x branch from 14194cb to 09fb9a0 Compare January 5, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant