Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
damdo committed Sep 8, 2023
1 parent 1042f87 commit 8162bcc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ linters:
- exportloopref
- forcetypeassert
- gci
- gocognit
- goconst
- gocritic
- gocyclo
Expand Down
4 changes: 2 additions & 2 deletions cmd/gom/cmd/play.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func init() {
playCmd.Flags().StringVar(&playImpl.netShared, "net-shared", "", "net shared")
}

func (r *playImplConfig) play(ctx context.Context, args []string, stdout, stderr io.Writer) error {
func (r *playImplConfig) play(ctx context.Context, _ []string, _, _ io.Writer) error {
// Setup a random source.
rnd := rand.New(rand.NewSource(time.Now().UnixNano()))

Expand Down Expand Up @@ -190,7 +190,7 @@ func fmtQemuConfig(cfg []string) string {
}

func obtainDiskFile(ctx context.Context, baseDir, mbrSourceName,
bootSourceName, rootSourceName, sbomSourceName, gafSourceName, destName string) (string, string, error) {
bootSourceName, rootSourceName, _, gafSourceName, destName string) (string, string, error) {
var diskFile, mode string

mbrSourcePath := path.Join(baseDir, mbrSourceName)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/damdo/gokrazy-machine
go 1.19

require (
github.com/CalebQ42/squashfs v0.8.4
github.com/gokrazy/tools v0.0.0-20221120152115-b0f51bdf9220
github.com/opencontainers/image-spec v1.1.0-rc2
github.com/spf13/cobra v1.5.0
Expand All @@ -11,7 +12,6 @@ require (

require (
github.com/CalebQ42/fuse v0.1.0 // indirect
github.com/CalebQ42/squashfs v0.8.4 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/klauspost/compress v1.16.7 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ golang.org/x/mod v0.5.1 h1:OJxoQ/rynoF0dcCdI7cLPktw/hR2cueqYfjm43oqK38=
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 h1:rw6UNGRMfarCepjI8qOepea/SXwIBVfTKjztZ5gBbq4=
golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
Expand Down
2 changes: 1 addition & 1 deletion internal/gaf/gaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
)

// Extract extracts the content of a gaf archive.
func Extract(ctx context.Context, source io.ReaderAt, size int64) (ReadClosers, error) {
func Extract(_ context.Context, source io.ReaderAt, size int64) (ReadClosers, error) {
gafRCs := ReadClosers{}

reader, err := zip.NewReader(source, size)
Expand Down

0 comments on commit 8162bcc

Please sign in to comment.