Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
feat: update GitLab service initialization to use export timeout and …
…enhance linting configuration
  • Loading branch information
sgaunet committed Aug 24, 2025
commit c5de02accc47b96820b0fb8b4bdd5a4b3492ebc0
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ linters:

disable:
- wsl
- wsl_v5
- nlreturn
- depguard
- gochecknoinits
- gochecknoglobals
- forbidigo
- varnamelen
- exhaustruct
- tagliatelle
- tagliatelle
- noinlineerr
2 changes: 1 addition & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
"[email protected]",
"[email protected]",
"golangci-lint@2.1.6"
"golangci-lint@2.3.1"
],
"shell": {
"init_hook": [
Expand Down
36 changes: 28 additions & 8 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,51 @@
}
}
},
"golangci-lint@2.1.6": {
"last_modified": "2025-05-06T08:06:31Z",
"resolved": "github:NixOS/nixpkgs/1cb1c02a6b1b7cf67e3d7731cbbf327a53da9679#golangci-lint",
"golangci-lint@2.3.1": {
"last_modified": "2025-08-03T19:18:05Z",
"resolved": "github:NixOS/nixpkgs/bf9fa86a9b1005d932f842edf2c38eeecc98eef3#golangci-lint",
"source": "devbox-search",
"version": "2.1.6",
"version": "2.3.1",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/ahn380skfkdg3ynimjpqakc1wp26mpsi-golangci-lint-2.3.1",
"default": true
}
],
"store_path": "/nix/store/ahn380skfkdg3ynimjpqakc1wp26mpsi-golangci-lint-2.3.1"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/nzfzphypaibr5md38sqjm91i8azhynj4-golangci-lint-2.1.6",
"path": "/nix/store/5wf61l5pnqlna9mwllllq334rkh1i2a6-golangci-lint-2.3.1",
"default": true
}
],
"store_path": "/nix/store/5wf61l5pnqlna9mwllllq334rkh1i2a6-golangci-lint-2.3.1"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/sbqfd50kb6g4gka3w1vixjrnacspdwq5-golangci-lint-2.3.1",
"default": true
}
],
"store_path": "/nix/store/nzfzphypaibr5md38sqjm91i8azhynj4-golangci-lint-2.1.6"
"store_path": "/nix/store/sbqfd50kb6g4gka3w1vixjrnacspdwq5-golangci-lint-2.3.1"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/05p9lrvs0d7qqcd2vdks2lvmvi0kdp05-golangci-lint-2.1.6",
"path": "/nix/store/kxbsvkixvkn0ss81rbc1g814sizd1jwj-golangci-lint-2.3.1",
"default": true
}
],
"store_path": "/nix/store/05p9lrvs0d7qqcd2vdks2lvmvi0kdp05-golangci-lint-2.1.6"
"store_path": "/nix/store/kxbsvkixvkn0ss81rbc1g814sizd1jwj-golangci-lint-2.3.1"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewApp(cfg *config.Config) (*App, error) {
var err error
app := &App{
cfg: cfg,
gitlabService: gitlab.NewGitlabService(),
gitlabService: gitlab.NewGitlabServiceWithTimeout(cfg.ExportTimeoutMins),
log: slog.New(slog.DiscardHandler),
}
gitlab.SetLogger(app.log)
Expand Down
2 changes: 1 addition & 1 deletion pkg/hooks/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func execute(command string) error {
if len(splitCmd) == 0 {
return nil
}
//nolint:gosec // G204: Command execution with user input is intentional for hook functionality
//nolint:gosec,noctx // G204: Command execution with user input is intentional for hook functionality
_, err := exec.Command(splitCmd[0], splitCmd[1:]...).CombinedOutput()
if err != nil {
return fmt.Errorf("failed to execute %s: %w", command, err)
Expand Down
Loading