Skip to content

Commit

Permalink
Fix different capabilities on windows for github.com/google/uuid (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
breml committed Sep 19, 2023
1 parent 0400c48 commit 8ec0ec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/depcaps/depcaps_others_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ import (
"github.com/breml/depcaps/pkg/depcaps"
)

func osSpecificLinterSettings(linterSettings *depcaps.LinterSettings) {}
func osSpecificLinterSettings(*depcaps.LinterSettings) {}
3 changes: 3 additions & 0 deletions pkg/depcaps/depcaps_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ package depcaps_test
import "github.com/breml/depcaps/pkg/depcaps"

func osSpecificLinterSettings(linterSettings *depcaps.LinterSettings) {
if linterSettings.GlobalAllowedCapabilities == nil {
linterSettings.GlobalAllowedCapabilities = make(map[string]bool, 1)
}
linterSettings.GlobalAllowedCapabilities["CAPABILITY_SYSTEM_CALLS"] = true
}

0 comments on commit 8ec0ec4

Please sign in to comment.