Skip to content

Commit

Permalink
declare min Go version to be v1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Nov 11, 2024
1 parent be2dc4d commit 560b671
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci-aqua-security-trivy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get Go Version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
go-version-file: go.mod
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/ci-dgo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,10 @@ jobs:
with:
path: dgo
repository: dgraph-io/dgo
- name: Get Go Version
run: |
#!/bin/bash
cd dgraph
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
go-version-file: go.mod
- name: Make Linux Build and Docker Image
run: cd dgraph && make docker-image
- name: Move dgraph binary to gopath
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/ci-golang-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Get Go Version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
go-version-file: go.mod
- name: golang-lint
env:
# prevent OOM
Expand Down
1 change: 0 additions & 1 deletion .go-version

This file was deleted.

4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/dgraph-io/dgo/v240

go 1.22.6
go 1.21

toolchain go1.23.2

require (
github.com/gogo/protobuf v1.3.2
Expand Down

0 comments on commit 560b671

Please sign in to comment.