Skip to content

Commit

Permalink
Merge pull request #50 from anchore/go-bump
Browse files Browse the repository at this point in the history
chore: go bump to 1.20
  • Loading branch information
bradleyjones committed Apr 25, 2023
2 parents 32e4cf8 + ec13afb commit 58ac268
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'v*'

env:
GO_VERSION: "1.19.x"
GO_VERSION: "1.20.x"

jobs:
wait-for-checks:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# This check name is defined as the github actions job name (in .github/workflows/static-analysis.yaml)
checkName: "Static-Analysis (1.19.x, ubuntu-latest)"
checkName: "Static-Analysis (1.20.x, ubuntu-latest)"
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Check unit test results
Expand All @@ -49,7 +49,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# This check name is defined as the github actions job name (in .github/workflows/unit-test.yaml)
checkName: "Unit-Tests (1.19.x, ubuntu-latest)"
checkName: "Unit-Tests (1.20.x, ubuntu-latest)"
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Quality gate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- v*

env:
GO_VERSION: "1.19.x"
GO_VERSION: "1.20.x"

jobs:
Build-Snapshot-Artifacts:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
Static-Analysis:
strategy:
matrix:
go-version: ["1.19.x"]
go-version: ["1.20.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
# test the lower bounds of support, and the latest available
go-version: ["1.19.x"]
go-version: ["1.20.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TITLE := $(BOLD)$(PURPLE)
SUCCESS := $(BOLD)$(GREEN)

# ci dependency versions
GOLANG_CI_VERSION = v1.50.1
GOLANG_CI_VERSION = v1.52.2
GOSIMPORTS_VERSION = v0.3.4
GORELEASER_VERSION = v1.16.0

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/anchore/ecs-inventory

go 1.19
go 1.20

require (
github.com/adrg/xdg v0.4.0
Expand Down
10 changes: 5 additions & 5 deletions internal/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (

type NoOpLogger struct{}

func (log NoOpLogger) Debug(msg string, args ...interface{}) {}
func (log NoOpLogger) Debug(string, ...interface{}) {}

func (log NoOpLogger) Debugf(msg string, args ...interface{}) {}
func (log NoOpLogger) Debugf(string, ...interface{}) {}

func (log NoOpLogger) Info(msg string, args ...interface{}) {}
func (log NoOpLogger) Info(string, ...interface{}) {}

func (log NoOpLogger) Warn(msg string, args ...interface{}) {}
func (log NoOpLogger) Warn(string, ...interface{}) {}

func (log NoOpLogger) Error(msg string, err error, args ...interface{}) {}
func (log NoOpLogger) Error(string, error, ...interface{}) {}

type ZapLogger struct {
zap *zap.SugaredLogger
Expand Down

0 comments on commit 58ac268

Please sign in to comment.