Skip to content

Commit

Permalink
build: Upgrade to go-1.21, Linter1.54.2 and Alpine 3.18 (#624)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
  • Loading branch information
Lenny Goodell committed Sep 12, 2023
1 parent 996c7dc commit 9edf56c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG BASE=golang:1.20-alpine3.17
ARG BASE=golang:1.21-alpine3.18
FROM ${BASE} AS builder

ARG ADD_BUILD_TAGS=""
Expand All @@ -34,7 +34,7 @@ COPY . .
# This is handy of you do your Docker business on a Mac
RUN $MAKE

FROM alpine:3.17
FROM alpine:3.18

LABEL license='VSPDX-License-Identifier: Apache-2.0' \
copyright='Copyright (c) 2020-2021: IoTech Ltd'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ lint:
@if [ "z${ARCH}" = "zx86_64" ] && which golangci-lint >/dev/null ; then golangci-lint run --config .golangci.yml ; else echo "WARNING: Linting skipped (not on x86_64 or linter not installed)"; fi

install-lint:
sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.51.2
sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.54.2

test: unittest lint
go vet ./...
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/edgexfoundry/device-mqtt-go

go 1.20
go 1.21

require (
github.com/eclipse/paho.mqtt.golang v1.4.3
Expand Down

0 comments on commit 9edf56c

Please sign in to comment.