Skip to content

Commit aacd75b

Browse files
authored
declare min Go version to be v1.21 (#207)
1 parent be2dc4d commit aacd75b

File tree

5 files changed

+7
-22
lines changed

5 files changed

+7
-22
lines changed

.github/workflows/ci-aqua-security-trivy-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,15 @@ jobs:
2525
steps:
2626
- name: Checkout code
2727
uses: actions/checkout@v4
28-
- name: Get Go Version
29-
run: |
30-
#!/bin/bash
31-
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
32-
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
3328
- name: Set up Go
3429
uses: actions/setup-go@v5
3530
with:
36-
go-version: ${{ env.GOVERSION }}
31+
go-version-file: go.mod
3732
- name: Run Trivy vulnerability scanner
3833
uses: aquasecurity/trivy-action@master
3934
with:
4035
scan-type: 'fs'
41-
scan-ref: '.'
36+
scan-ref: '.'
4237
format: 'sarif'
4338
output: 'trivy-results.sarif'
4439
- name: Upload Trivy scan results to GitHub Security tab

.github/workflows/ci-dgo-tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,10 @@ jobs:
2828
with:
2929
path: dgo
3030
repository: dgraph-io/dgo
31-
- name: Get Go Version
32-
run: |
33-
#!/bin/bash
34-
cd dgraph
35-
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
36-
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
3731
- name: Set up Go
3832
uses: actions/setup-go@v5
3933
with:
40-
go-version: ${{ env.GOVERSION }}
34+
go-version-file: dgo/go.mod
4135
- name: Make Linux Build and Docker Image
4236
run: cd dgraph && make docker-image
4337
- name: Move dgraph binary to gopath

.github/workflows/ci-golang-lint.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,10 @@ jobs:
2020
runs-on: ubuntu-20.04
2121
steps:
2222
- uses: actions/checkout@v4
23-
- name: Get Go Version
24-
run: |
25-
#!/bin/bash
26-
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
27-
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
2823
- name: Setup Go
2924
uses: actions/setup-go@v5
3025
with:
31-
go-version: ${{ env.GOVERSION }}
26+
go-version-file: go.mod
3227
- name: golang-lint
3328
env:
3429
# prevent OOM

.go-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/dgraph-io/dgo/v240
22

3-
go 1.22.6
3+
go 1.21
4+
5+
toolchain go1.23.2
46

57
require (
68
github.com/gogo/protobuf v1.3.2

0 commit comments

Comments
 (0)