Skip to content

Commit

Permalink
upgrade golang to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed May 10, 2024
1 parent ed9e661 commit b1e6717
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-with-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version || '^1.20' }}
go-version: ${{ inputs.go-version || '^1.21' }}
check-latest: true

- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
matrix:
include:
# test build of oldest supported go version
- name: go1.20
go-version: "~1.20"
- name: go1.21
go-version: "~1.21"
uses: ./.github/workflows/build-with-cfg.yml
with:
go-version: ${{ matrix.go-version }}
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go 1.20+
- name: Set up Go 1.21+
uses: actions/setup-go@v5
with:
go-version: "^1.20" # The Go version to download (if necessary) and use.
go-version: "^1.21" # The Go version to download (if necessary) and use.
check-latest: true
cache: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-with-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: Shallow checkout
uses: actions/checkout@v4

- name: Set up Go 1.20+
- name: Set up Go 1.21+
uses: actions/setup-go@v5
with:
go-version: "^1.20"
go-version: "^1.21"
check-latest: true

- run: go version
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,4 @@ issues:
# fix: true

run:
go: "1.20"
go: "1.21"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The **client** enables interaction with devices in a local network:

## Requirements

- Go 1.20 or higher
- Go 1.21 or higher

## Installation OCF Client

Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-device/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.20.14-alpine AS build
FROM golang:1.21.10-alpine AS build
RUN apk add --no-cache curl git build-base
WORKDIR $GOPATH/src/github.com/plgd-dev/device
COPY go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion test/cloud-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20.14-alpine AS build
FROM golang:1.21.10-alpine AS build
RUN apk add --no-cache curl git build-base
WORKDIR $GOPATH/src/github.com/plgd-dev/device
COPY go.mod go.sum ./
Expand Down

0 comments on commit b1e6717

Please sign in to comment.