Skip to content

Commit

Permalink
Simpler compiler directives +build -> go:build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Dec 6, 2023
1 parent a43409c commit 87bd252
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions cmd/crowdsec/run_in_svc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || freebsd || netbsd || openbsd || solaris || !windows
// +build linux freebsd netbsd openbsd solaris !windows
//go:build !windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/crowdsec/win_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/crowdsec/win_service_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package main

Expand Down
2 changes: 1 addition & 1 deletion cmd/crowdsec/win_service_manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build windows
//go:build windows

package main

Expand Down
2 changes: 1 addition & 1 deletion pkg/acquisition/modules/file/tailline.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux freebsd netbsd openbsd solaris !windows
//go:build !windows

package fileacquisition

Expand Down
2 changes: 1 addition & 1 deletion pkg/acquisition/modules/file/tailline_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package fileacquisition

Expand Down
1 change: 0 additions & 1 deletion pkg/acquisition/modules/wineventlog/wineventlog_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package wineventlogacquisition

Expand Down

0 comments on commit 87bd252

Please sign in to comment.