Skip to content

Commit 735df73

Browse files
authored
chore: update golang dependencies #102 (#88)
1 parent 3aaf60a commit 735df73

10 files changed

Lines changed: 42 additions & 1068 deletions

File tree

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
env:
1111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12-
GO_VERSION: '1.16'
12+
GO_VERSION: '1.18'
1313
INTEGRATION: "mssql"
1414
ORIGINAL_REPO_NAME: ${{ github.event.repository.full_name }}
1515
REPO_FULL_NAME: ${{ github.event.repository.full_name }}

.github/workflows/push_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
TAG: "v0.0.0" # needed for goreleaser windows builds
1212
REPO_FULL_NAME: ${{ github.event.repository.full_name }}
1313
ORIGINAL_REPO_NAME: "newrelic/nri-mssql"
14-
GO_VERSION: '1.16'
14+
GO_VERSION: '1.18'
1515
DOCKER_LOGIN_AVAILABLE: ${{ secrets.OHAI_DOCKER_HUB_ID }}
1616

1717
jobs:

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## 2.8.2 (2022-06-27)
9+
### Changed
10+
- Bump dependencies
11+
### Added
12+
Added support for more distributions:
13+
- RHEL(EL) 9
14+
- Ubuntu 22.04
15+
816
## 2.8.1 (2021-10-20)
917
### Added
1018
Added support for more distributions:

Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,15 @@ INTEGRATION := mssql
33
BINARY_NAME = nri-$(INTEGRATION)
44
GO_FILES := ./src/
55
GOFLAGS = -mod=readonly
6-
GOLANGCI_LINT = github.com/golangci/golangci-lint/cmd/golangci-lint
76

87
all: build
98

10-
build: clean validate test compile
9+
build: clean test compile
1110

1211
clean:
1312
@echo "=== $(INTEGRATION) === [ clean ]: Removing binaries and coverage file..."
1413
@rm -rfv bin coverage.xml
1514

16-
validate:
17-
@printf "=== $(INTEGRATION) === [ validate ]: running golangci-lint & semgrep... "
18-
@go run $(GOFLAGS) $(GOLANGCI_LINT) run --verbose
19-
@[ -f .semgrep.yml ] && semgrep_config=".semgrep.yml" || semgrep_config="p/golang" ; \
20-
docker run --rm -v "${PWD}:/src:ro" --workdir /src returntocorp/semgrep -c "$$semgrep_config"
21-
2215
test:
2316
@echo "=== $(INTEGRATION) === [ test ]: Running unit tests..."
2417
@go test -race ./... -count=1
@@ -37,4 +30,4 @@ compile:
3730
include $(CURDIR)/build/ci.mk
3831
include $(CURDIR)/build/release.mk
3932

40-
.PHONY: all build clean validate compile test
33+
.PHONY: all build clean compile test

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16-buster
1+
FROM golang:1.18-buster
22

33
ARG GH_VERSION='1.9.2'
44

build/ci.mk

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ ci/debug-container: ci/deps
1919
-e GPG_PRIVATE_KEY_BASE64 \
2020
$(BUILDER_TAG) bash
2121

22-
.PHONY : ci/validate
23-
ci/validate: ci/deps
24-
@docker run --rm -t \
25-
--name "nri-$(INTEGRATION)-validate" \
26-
-v $(CURDIR):/go/src/github.com/newrelic/nri-$(INTEGRATION) \
27-
-w /go/src/github.com/newrelic/nri-$(INTEGRATION) \
28-
$(BUILDER_TAG) make validate
29-
3022
.PHONY : ci/test
3123
ci/test: ci/deps
3224
@docker run --rm -t \
@@ -79,4 +71,4 @@ ifdef TAG
7971
else
8072
@echo "===> $(INTEGRATION) === [ci/prerelease] TAG env variable expected to be set"
8173
exit 1
82-
endif
74+
endif

go.mod

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
module github.com/newrelic/nri-mssql
22

3-
go 1.16
3+
go 1.18
44

55
require (
66
github.com/denisenkom/go-mssqldb v0.10.0
7-
github.com/golangci/golangci-lint v1.41.1
87
github.com/jmoiron/sqlx v1.3.4
9-
github.com/newrelic/infra-integrations-sdk v3.6.7+incompatible
10-
github.com/stretchr/testify v1.7.0
8+
github.com/newrelic/infra-integrations-sdk v3.7.3+incompatible
9+
github.com/stretchr/testify v1.7.5
1110
github.com/xeipuuv/gojsonschema v1.2.0
1211
gopkg.in/DATA-DOG/go-sqlmock.v1 v1.3.0
1312
gopkg.in/yaml.v2 v2.4.0
1413
)
14+
15+
require (
16+
github.com/davecgh/go-spew v1.1.1 // indirect
17+
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
18+
github.com/kr/text v0.2.0 // indirect
19+
github.com/lib/pq v1.9.0 // indirect
20+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
21+
github.com/pkg/errors v0.9.1 // indirect
22+
github.com/pmezard/go-difflib v1.0.0 // indirect
23+
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
24+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
25+
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect
26+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
27+
gopkg.in/yaml.v3 v3.0.1 // indirect
28+
)

go.sum

Lines changed: 8 additions & 1034 deletions
Large diffs are not rendered by default.

tests/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ services:
1212
restart: always
1313

1414
nri-mssql:
15-
image: golang:1.16
15+
image: golang:1.18
1616
container_name: nri_mssql
1717
working_dir: /code
1818
volumes:
1919
- ../:/code
20-
entrypoint: go run /code/src/mssql.go
20+
entrypoint: go run /code/src/mssql.go

tools/tools.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)