Skip to content

Commit

Permalink
build: update go to 1.23 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
shino authored Sep 25, 2024
1 parent 0c8a289 commit a8fd0cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.54
version: v1.61
args: --timeout=10m

# Optional: working directory, useful for monorepos
# working-directory: somedir

Expand Down
4 changes: 1 addition & 3 deletions db/rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ func (r *RDBDriver) MigrateDB() error {
}
}
case dialectMysql, dialectPostgreSQL:
if err != nil {
return xerrors.Errorf("Failed to migrate. err: %w", err)
}
return xerrors.Errorf("Failed to migrate. err: %w", err)
default:
return xerrors.Errorf("Not Supported DB dialects. r.name: %s", r.name)
}
Expand Down
7 changes: 1 addition & 6 deletions git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (gc Config) CloneRepo(url, repoPath string) (map[string]struct{}, error) {
return nil, err
}

err = filepath.Walk(repoPath, func(path string, info os.FileInfo, err error) error {
err = filepath.Walk(repoPath, func(path string, info os.FileInfo, _ error) error {
if info.IsDir() {
return nil
}
Expand All @@ -73,8 +73,3 @@ func clone(url, repoPath string) error {
}
return nil
}

func generateGitArgs(repoPath string) []string {
gitDir := filepath.Join(repoPath, ".git")
return []string{"--git-dir", gitDir, "--work-tree", repoPath}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vulsio/go-msfdb

go 1.20
go 1.23

require (
github.com/cheggaaa/pb/v3 v3.1.5
Expand Down

0 comments on commit a8fd0cc

Please sign in to comment.