Skip to content

Commit dbd046c

Browse files
authored
Merge pull request #131 from fluent/add-gomod
Follow to use Go module structure in CI workflow
2 parents 5538e90 + 8e5bcdd commit dbd046c

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu, macos, windows]
17-
golang: ['1.13', '1.16', '1.17']
17+
golang: ['1.23', '1.24']
1818
# currently, we cannot run non-x86_64 machines on Github Actions cloud env.
1919
runs-on: ${{ matrix.os }}-latest
2020
name: CI golang ${{ matrix.golang }} on ${{ matrix.os }}
@@ -23,12 +23,6 @@ jobs:
2323
- uses: actions/setup-go@v2
2424
with:
2525
go-version: ${{ matrix.golang }}
26-
- name: Change GO11MODULES
27-
run: go env -w GO111MODULE=auto
28-
- name: Install requirements
29-
run: |
30-
go get github.com/bmizerany/assert
31-
go get github.com/philhofer/fwd
32-
go get github.com/tinylib/msgp
3326
- name: Test
3427
run: go test -v ./fluent
28+
shell: bash

go.mod

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module github.com/fluent/fluent-logger-golang
2+
3+
go 1.23.5
4+
5+
require (
6+
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869
7+
github.com/tinylib/msgp v1.3.0
8+
)
9+
10+
require (
11+
github.com/kr/pretty v0.3.1 // indirect
12+
github.com/kr/text v0.2.0 // indirect
13+
github.com/philhofer/fwd v1.1.3-0.20240916144458-20a13a1f6b7c // indirect
14+
github.com/rogpeppe/go-internal v1.9.0 // indirect
15+
)

go.sum

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY=
2+
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
3+
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
4+
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
5+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
6+
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
7+
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
8+
github.com/philhofer/fwd v1.1.3-0.20240916144458-20a13a1f6b7c h1:dAMKvw0MlJT1GshSTtih8C2gDs04w8dReiOGXrGLNoY=
9+
github.com/philhofer/fwd v1.1.3-0.20240916144458-20a13a1f6b7c/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM=
10+
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
11+
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
12+
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
13+
github.com/tinylib/msgp v1.3.0 h1:ULuf7GPooDaIlbyvgAxBV/FI7ynli6LZ1/nVUNu+0ww=
14+
github.com/tinylib/msgp v1.3.0/go.mod h1:ykjzy2wzgrlvpDCRc4LA8UXy6D8bzMSuAF3WD57Gok0=

0 commit comments

Comments
 (0)