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

fix(ci): ubuntu was unpinned in configs #41

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on: [ push, pull_request ]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.38
version: v1.55.0
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

jobs:
coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Install Go
if: success()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/warm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Renew documentation
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Pull new module version
uses: clok/go-proxy-pull-action@master
13 changes: 13 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,16 @@ linters:
- golint
- misspell
- unconvert

linters-settings:
depguard:
rules:
prevent_unmaintained_packages:
list-mode: lax # allow unless explicitely denied
files:
- $all
- "!$test"
allow:
- $gostd
- "github.com/gookit/color" # no longer maintained
- "github.com/kr/pretty" # no longer maintained
14 changes: 8 additions & 6 deletions kemba.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ func (k *Kemba) Log(v ...interface{}) {
// New logger instance will have original `tag` value delimited with a `:` and appended with the new extended `tag` input.
//
// Example:
// k := New("test:original)
// k.Log("test")
// ke := k.Extend("plugin")
// ke.Log("test extended")
//
// k := New("test:original)
// k.Log("test")
// ke := k.Extend("plugin")
// ke.Log("test extended")
//
// Output:
// test:original test
// test:original:plugin test extended
//
// test:original test
// test:original:plugin test extended
func (k *Kemba) Extend(tag string) *Kemba {
exTag := fmt.Sprintf("%s:%s", k.tag, tag)
return New(exTag)
Expand Down