Skip to content

Commit 69461f1

Browse files
committed
util/sleep: exclude iOS
The previous filters would also compile the sleep_darwin.go file for iOS, failing compilation, as the `darwin` build tag also matches on iOS: https://pkg.go.dev/cmd/go ``` Using GOOS=ios matches build tags and files as for GOOS=darwin in addition to ios tags and files. ``` We need to exclude iOS explicitly here.
1 parent b5eea13 commit 69461f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

util/sleep/sleep.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build !darwin || nosleep
15+
//go:build !darwin || ios || nosleep
1616

1717
package sleep
1818

util/sleep/sleep_darwin.go renamed to util/sleep/sleep_macos.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build darwin && !nosleep
15+
//go:build darwin && !ios && !nosleep
1616

1717
package sleep
1818

0 commit comments

Comments
 (0)