Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ jobs:

# UPDATE_HERE
# https://github.com/asdf-vm/actions/releases
# https://github.com/asdf-vm/actions/issues/594
- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
# uses: asdf-vm/actions/install@v3
uses: asdf-vm/actions/install@9cd779f40fe38688dd19505ccbc4eaaf018b44e7
with:
asdf_version: 0.16.7

- name: Check out full code history
run: |
Expand Down
87 changes: 87 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
version: "2"
run:
concurrency: 6
linters:
default: none
enable:
- asciicheck
- bodyclose
- errcheck
- goconst
- gocritic
- gosec
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- prealloc
- staticcheck
- unconvert
- unused
- whitespace
settings:
gocritic:
enabled-checks:
- commentedOutCode
- nilValReturn
- sloppyReassign
- weakCond
- octalLiteral
- appendCombine
- equalFold
- hugeParam
- indexAlloc
- rangeExprCopy
- boolExprSimplify
- commentedOutImport
- docStub
- emptyFallthrough
- emptyStringTest
- hexLiteral
- methodExprCall
- stringXbytes
- typeAssertChain
- unlabelStmt
- yodaStyleExpr
- builtinShadow
- importShadow
- initClause
- nestingReduce
- paramTypeCombine
- ptrToRefParam
- typeUnparen
- unnamedResult
- unnecessaryBlock
gosec:
excludes:
- G401
- G505
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dupl
- gocritic
- golint
path: fake_.*\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
98 changes: 0 additions & 98 deletions .golangci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ release:
archives:
- format_overrides:
- goos: windows
format: zip
formats: [ 'zip' ]
name_template: >-
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }}
#replacements:
Expand Down
8 changes: 5 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# UPDATE_HERE
# https://golang.org/dl/
golang 1.23.4
golang 1.24.3
# https://github.com/goreleaser/goreleaser/releases
goreleaser 2.4.8
goreleaser 2.9.0
# https://github.com/vektra/mockery/releases
mockery 2.50.0
# https://github.com/caarlos0/svu/releases
svu 2.2.0
svu 3.2.3
# https://github.com/golangci/golangci-lint/releases
golangci-lint 2.1.6
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"fmt"
"os"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v72/github"
log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
"golang.org/x/oauth2"
Expand Down
19 changes: 10 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ module github.com/isindir/git-get

// UPDATE_HERE
// https://go.dev/dl/
go 1.23.4
go 1.24.3

require (
// https://github.com/fatih/color/releases
github.com/fatih/color v1.18.0
// https://github.com/google/go-github/releases
github.com/google/go-github/v67 v67.0.0
github.com/google/go-github/v72 v72.0.0
// https://github.com/ktrysmt/go-bitbucket/releases
github.com/ktrysmt/go-bitbucket v0.9.81
github.com/ktrysmt/go-bitbucket v0.9.85
// https://github.com/sirupsen/logrus/releases
github.com/sirupsen/logrus v1.9.3
// https://github.com/spf13/cobra/releases
github.com/spf13/cobra v1.8.1
github.com/spf13/cobra v1.9.1
// https://github.com/stretchr/testify/releases
github.com/stretchr/testify v1.10.0
// https://github.com/xanzy/go-gitlab/releases
github.com/xanzy/go-gitlab v0.114.0
github.com/xanzy/go-gitlab v0.115.0
// https://pkg.go.dev/golang.org/x/net
golang.org/x/net v0.32.0
golang.org/x/net v0.40.0
// https://pkg.go.dev/golang.org/x/oauth2
golang.org/x/oauth2 v0.24.0
golang.org/x/oauth2 v0.30.0
// https://gopkg.in/yaml.v3
gopkg.in/yaml.v3 v3.0.1
)
Expand All @@ -33,12 +33,13 @@ require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/stretchr/objx v0.5.2 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/time v0.3.0 // indirect
)
Loading