Skip to content

Commit b62cbb6

Browse files
Bryan C. Millsgopherbot
authored andcommitted
internal/lockedfile: fix build constraints on solaris
The version of this file in the main repo uses a "!unix" build constraint, which had to be ported to a longer list for inclusion in gopls (which still supports Go versions that predate the "unix" tag). Solaris is a Unix derivative, and its implementation is provided in the "fcntl" implementation. Updates golang/go#57747. Change-Id: Ibde8ce55dadc03ad3cb797b5320f5b75580f639f Reviewed-on: https://go-review.googlesource.com/c/tools/+/463776 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
1 parent 1aa7e72 commit b62cbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/lockedfile/internal/filelock/filelock_other.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !(aix || darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd) && !plan9 && !windows
6-
// +build !aix,!darwin,!dragonfly,!freebsd,!illumos,!linux,!netbsd,!openbsd,!plan9,!windows
5+
//go:build !(aix || darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd || solaris) && !plan9 && !windows
6+
// +build !aix,!darwin,!dragonfly,!freebsd,!illumos,!linux,!netbsd,!openbsd,!solaris,!plan9,!windows
77

88
package filelock
99

0 commit comments

Comments
 (0)