Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: build with Go 1.23 #234

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
- name: Install Task
uses: arduino/setup-task@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions examples/go-client/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module example.com/client

go 1.22
go 1.23

toolchain go1.22.2
toolchain go1.23.2

replace github.com/retr0h/gilt/v2 => ../../../gilt/

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/retr0h/gilt/v2

go 1.22
go 1.23

require (
github.com/avfs/avfs v0.33.0
github.com/avfs/avfs v0.33.1-0.20240914121800-614029c843ff
github.com/caarlos0/go-version v0.1.1
github.com/danjacques/gofslock v0.0.0-20230728142113-ae8f59f9e88b
github.com/go-playground/validator/v10 v10.22.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/avfs/avfs v0.33.0 h1:5WQXbUbr6VS7aani39ZN2Vrd/s3wLnyih1Sc4ExWTxs=
github.com/avfs/avfs v0.33.0/go.mod h1:Q59flcFRYe9KYkNMfrLUJney3yeKGQpcWRyxsDBW7vI=
github.com/avfs/avfs v0.33.1-0.20240914121800-614029c843ff h1:kNLtLYnnDNVCJg9l41F5rSL29AdxHPRicqlVCjA+BUY=
github.com/avfs/avfs v0.33.1-0.20240914121800-614029c843ff/go.mod h1:LnzrUO5acMU5NCkohHcUN15YrnkxiJ/lRLQOZSp39ow=
github.com/caarlos0/go-version v0.1.1 h1:1bikKHkGGVIIxqCmufhSSs3hpBScgHGacrvsi8FuIfc=
github.com/caarlos0/go-version v0.1.1/go.mod h1:Ze5Qx4TsBBi5FyrSKVg1Ibc44KGV/llAaKGp86oTwZ0=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
Expand Down
5 changes: 0 additions & 5 deletions internal/mocks/vfs/failfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"time"

"github.com/avfs/avfs"
"github.com/avfs/avfs/idm/dummyidm"
)

type FailFS struct {
Expand All @@ -31,7 +30,7 @@
errPermDenied error
features avfs.Features
failFn map[string]interface{}
avfs.Utils[*FailFS]

Check failure on line 33 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

undefined: avfs.Utils

Check failure on line 33 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

undefined: avfs.Utils
}

type FailFile struct {
Expand Down Expand Up @@ -90,19 +89,19 @@
}

func (vfs *FailFS) CreateSystemDirs(basePath string) error {
return vfs.baseFS.CreateSystemDirs(basePath)

Check failure on line 92 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

vfs.baseFS.CreateSystemDirs undefined (type avfs.VFS has no field or method CreateSystemDirs)
}

func (vfs *FailFS) CreateHomeDir(u avfs.UserReader) (string, error) {
return vfs.baseFS.CreateHomeDir(u)

Check failure on line 96 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

vfs.baseFS.CreateHomeDir undefined (type avfs.VFS has no field or method CreateHomeDir)
}

func (vfs *FailFS) HomeDirUser(u avfs.UserReader) string {
return vfs.baseFS.HomeDirUser(u)

Check failure on line 100 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

vfs.baseFS.HomeDirUser undefined (type avfs.VFS has no field or method HomeDirUser)
}

func (vfs *FailFS) SystemDirs(basePath string) []avfs.DirInfo {
return vfs.baseFS.SystemDirs(basePath)

Check failure on line 104 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

vfs.baseFS.SystemDirs undefined (type avfs.VFS has no field or method SystemDirs)
}

func (vfs *FailFS) Abs(path string) (string, error) {
Expand Down Expand Up @@ -179,10 +178,6 @@
return vfs.baseFS.Glob(pattern)
}

func (vfs *FailFS) Idm() avfs.IdentityMgr {
return dummyidm.NotImplementedIdm
}

func (vfs *FailFS) IsAbs(path string) bool {
return vfs.baseFS.IsAbs(path)
}
Expand Down Expand Up @@ -300,7 +295,7 @@
}

func (vfs *FailFS) SetUser(name string) (avfs.UserReader, error) {
return vfs.baseFS.SetUser(name)

Check failure on line 298 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

not enough return values

Check failure on line 298 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

cannot use name (variable of type string) as avfs.UserReader value in argument to vfs.baseFS.SetUser: string does not implement avfs.UserReader (missing method Gid)
}

func (vfs *FailFS) Split(path string) (dir, file string) {
Expand All @@ -308,7 +303,7 @@
}

func (vfs *FailFS) SplitAbs(path string) (dir, file string) {
return vfs.baseFS.SplitAbs(path)

Check failure on line 306 in internal/mocks/vfs/failfs.go

View workflow job for this annotation

GitHub Actions / build

vfs.baseFS.SplitAbs undefined (type avfs.VFS has no field or method SplitAbs) (typecheck)
}

func (vfs *FailFS) Stat(name string) (fs.FileInfo, error) {
Expand Down
Loading