Skip to content

Commit 1f63d14

Browse files
committed
rpk: only include tuner package files in linux
These files are only used in our tuner package, which only works for linux. Our other build targets (windows/darwin) should not care about these files. This also fixes an issue that prevented Mac users from running the linter. (cherry picked from commit 23333be)
1 parent 2b6fa17 commit 1f63d14

File tree

97 files changed

+187
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+187
-7
lines changed

src/go/rpk/pkg/cli/iotune/iotune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10-
//go:build !windows
10+
//go:build linux
1111

1212
package iotune
1313

src/go/rpk/pkg/system/grub.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package system
1113

1214
import (

src/go/rpk/pkg/system/grub_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package system
1113

1214
import (

src/go/rpk/pkg/tuners/aggregated_tunable.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners
1113

1214
func NewAggregatedTunable(tunables []Tunable) Tunable {

src/go/rpk/pkg/tuners/aggregated_tunable_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners
1113

1214
import (

src/go/rpk/pkg/tuners/aio.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners
1113

1214
import (

src/go/rpk/pkg/tuners/aio_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners_test
1113

1214
import (

src/go/rpk/pkg/tuners/check.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners
1113

1214
import (

src/go/rpk/pkg/tuners/checked_tunable.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners
1113

1214
import (

src/go/rpk/pkg/tuners/checked_tunable_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// the Business Source License, use of this software will be governed
88
// by the Apache License, Version 2.0
99

10+
//go:build linux
11+
1012
package tuners
1113

1214
import (

0 commit comments

Comments
 (0)