From 716660217d8384acedd8b6ebdbe5bd13b885f781 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Wed, 6 Nov 2024 15:07:33 +0100 Subject: [PATCH] remove deprecated build flags syntax (#3930) --- internal/externalcmd/cmd_unix.go | 1 - internal/externalcmd/cmd_win.go | 1 - internal/logger/syslog_unix.go | 1 - internal/logger/syslog_win.go | 1 - internal/rlimit/rlimit_unix.go | 1 - internal/rlimit/rlimit_win.go | 1 - internal/staticsources/rpicamera/camera.go | 1 - internal/staticsources/rpicamera/camera_disabled.go | 1 - internal/staticsources/rpicamera/component.go | 1 - internal/staticsources/rpicamera/component_32.go | 1 - internal/staticsources/rpicamera/component_64.go | 1 - internal/staticsources/rpicamera/params_serialize.go | 1 - internal/staticsources/rpicamera/pipe.go | 1 - internal/testhighlevel/build_images_test.go | 1 - internal/testhighlevel/hls_manager_test.go | 1 - internal/testhighlevel/rtsp_server_test.go | 1 - internal/testhighlevel/tests_test.go | 1 - 17 files changed, 17 deletions(-) diff --git a/internal/externalcmd/cmd_unix.go b/internal/externalcmd/cmd_unix.go index ce4db958500..c8c39ecd68c 100644 --- a/internal/externalcmd/cmd_unix.go +++ b/internal/externalcmd/cmd_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package externalcmd diff --git a/internal/externalcmd/cmd_win.go b/internal/externalcmd/cmd_win.go index 518d9e6663c..e424d49d806 100644 --- a/internal/externalcmd/cmd_win.go +++ b/internal/externalcmd/cmd_win.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows package externalcmd diff --git a/internal/logger/syslog_unix.go b/internal/logger/syslog_unix.go index 98121e88550..5d4b1860caf 100644 --- a/internal/logger/syslog_unix.go +++ b/internal/logger/syslog_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package logger diff --git a/internal/logger/syslog_win.go b/internal/logger/syslog_win.go index 85f5c6ee52e..380a84d5ec6 100644 --- a/internal/logger/syslog_win.go +++ b/internal/logger/syslog_win.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows package logger diff --git a/internal/rlimit/rlimit_unix.go b/internal/rlimit/rlimit_unix.go index 58d15174582..b572a07a606 100644 --- a/internal/rlimit/rlimit_unix.go +++ b/internal/rlimit/rlimit_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows // Package rlimit contains a function to raise rlimit. package rlimit diff --git a/internal/rlimit/rlimit_win.go b/internal/rlimit/rlimit_win.go index 4d1e295d867..a3510e6c6e1 100644 --- a/internal/rlimit/rlimit_win.go +++ b/internal/rlimit/rlimit_win.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows package rlimit diff --git a/internal/staticsources/rpicamera/camera.go b/internal/staticsources/rpicamera/camera.go index f889f85803e..15b35a995ba 100644 --- a/internal/staticsources/rpicamera/camera.go +++ b/internal/staticsources/rpicamera/camera.go @@ -1,5 +1,4 @@ //go:build (linux && arm) || (linux && arm64) -// +build linux,arm linux,arm64 package rpicamera diff --git a/internal/staticsources/rpicamera/camera_disabled.go b/internal/staticsources/rpicamera/camera_disabled.go index 60a726e25a0..ccfc5a63cba 100644 --- a/internal/staticsources/rpicamera/camera_disabled.go +++ b/internal/staticsources/rpicamera/camera_disabled.go @@ -1,5 +1,4 @@ //go:build !linux || (!arm && !arm64) -// +build !linux !arm,!arm64 package rpicamera diff --git a/internal/staticsources/rpicamera/component.go b/internal/staticsources/rpicamera/component.go index 3bbf6809cd3..c40363908f8 100644 --- a/internal/staticsources/rpicamera/component.go +++ b/internal/staticsources/rpicamera/component.go @@ -1,5 +1,4 @@ //go:build (linux && arm) || (linux && arm64) -// +build linux,arm linux,arm64 package rpicamera diff --git a/internal/staticsources/rpicamera/component_32.go b/internal/staticsources/rpicamera/component_32.go index d91cce1c966..b7d19f11877 100644 --- a/internal/staticsources/rpicamera/component_32.go +++ b/internal/staticsources/rpicamera/component_32.go @@ -1,5 +1,4 @@ //go:build linux && arm -// +build linux,arm package rpicamera diff --git a/internal/staticsources/rpicamera/component_64.go b/internal/staticsources/rpicamera/component_64.go index cdc924dd04c..690bf5674b1 100644 --- a/internal/staticsources/rpicamera/component_64.go +++ b/internal/staticsources/rpicamera/component_64.go @@ -1,5 +1,4 @@ //go:build linux && arm64 -// +build linux,arm64 package rpicamera diff --git a/internal/staticsources/rpicamera/params_serialize.go b/internal/staticsources/rpicamera/params_serialize.go index 1234fdbb9ff..d9e023b1d56 100644 --- a/internal/staticsources/rpicamera/params_serialize.go +++ b/internal/staticsources/rpicamera/params_serialize.go @@ -1,5 +1,4 @@ //go:build (linux && arm) || (linux && arm64) -// +build linux,arm linux,arm64 package rpicamera diff --git a/internal/staticsources/rpicamera/pipe.go b/internal/staticsources/rpicamera/pipe.go index 926ad77c72e..44eb3bf17f0 100644 --- a/internal/staticsources/rpicamera/pipe.go +++ b/internal/staticsources/rpicamera/pipe.go @@ -1,5 +1,4 @@ //go:build (linux && arm) || (linux && arm64) -// +build linux,arm linux,arm64 package rpicamera diff --git a/internal/testhighlevel/build_images_test.go b/internal/testhighlevel/build_images_test.go index 7d24e4b1152..f8e1cafe238 100644 --- a/internal/testhighlevel/build_images_test.go +++ b/internal/testhighlevel/build_images_test.go @@ -1,5 +1,4 @@ //go:build enable_highlevel_tests -// +build enable_highlevel_tests package testhighlevel diff --git a/internal/testhighlevel/hls_manager_test.go b/internal/testhighlevel/hls_manager_test.go index b0cc8c19291..402735a12e7 100644 --- a/internal/testhighlevel/hls_manager_test.go +++ b/internal/testhighlevel/hls_manager_test.go @@ -1,5 +1,4 @@ //go:build enable_highlevel_tests -// +build enable_highlevel_tests package testhighlevel diff --git a/internal/testhighlevel/rtsp_server_test.go b/internal/testhighlevel/rtsp_server_test.go index 48bd9f7b2b7..e62bf404c11 100644 --- a/internal/testhighlevel/rtsp_server_test.go +++ b/internal/testhighlevel/rtsp_server_test.go @@ -1,5 +1,4 @@ //go:build enable_highlevel_tests -// +build enable_highlevel_tests package testhighlevel diff --git a/internal/testhighlevel/tests_test.go b/internal/testhighlevel/tests_test.go index b72d88d4ac8..0ed216dab5d 100644 --- a/internal/testhighlevel/tests_test.go +++ b/internal/testhighlevel/tests_test.go @@ -1,5 +1,4 @@ //go:build enable_highlevel_tests -// +build enable_highlevel_tests package testhighlevel