File tree 7 files changed +50
-2
lines changed 7 files changed +50
-2
lines changed Original file line number Diff line number Diff line change 5
5
# - js/wasm
6
6
# - wasp1/wasm
7
7
8
- for row in $( go tool dist list -json | jq -r ' .[] | select( .GOOS != "plan9" and .GOARCH != "wasm") | @base64' ) ; do
8
+ for row in $( go tool dist list -json | jq -r ' .[] | @base64' ) ; do
9
9
_jq () {
10
10
echo ${row} | base64 --decode | jq -r ${1}
11
11
}
Original file line number Diff line number Diff line change 3
3
// Use of this source code is governed by the BSD 3-Clause
4
4
// license that can be found in the LICENSE file.
5
5
6
+ //go:build !js && !plan9 && !wasip1
7
+
6
8
package flock_test
7
9
8
10
import (
Original file line number Diff line number Diff line change 3
3
// Use of this source code is governed by the BSD 3-Clause
4
4
// license that can be found in the LICENSE file.
5
5
6
+ //go:build !js && !plan9 && !wasip1
7
+
6
8
package flock
7
9
8
10
import (
Original file line number Diff line number Diff line change
1
+ //go:build (!unix && !windows) || plan9
2
+
3
+ package flock
4
+
5
+ import (
6
+ "errors"
7
+ "io/fs"
8
+ )
9
+
10
+ func (f * Flock ) Lock () error {
11
+ return & fs.PathError {
12
+ Op : "Lock" ,
13
+ Path : f .Path (),
14
+ Err : errors .ErrUnsupported ,
15
+ }
16
+ }
17
+
18
+ func (f * Flock ) RLock () error {
19
+ return & fs.PathError {
20
+ Op : "RLock" ,
21
+ Path : f .Path (),
22
+ Err : errors .ErrUnsupported ,
23
+ }
24
+ }
25
+
26
+ func (f * Flock ) Unlock () error {
27
+ return & fs.PathError {
28
+ Op : "Unlock" ,
29
+ Path : f .Path (),
30
+ Err : errors .ErrUnsupported ,
31
+ }
32
+ }
33
+
34
+ func (f * Flock ) TryLock () (bool , error ) {
35
+ return false , f .Lock ()
36
+ }
37
+
38
+ func (f * Flock ) TryRLock () (bool , error ) {
39
+ return false , f .RLock ()
40
+ }
Original file line number Diff line number Diff line change 3
3
// Use of this source code is governed by the BSD 3-Clause
4
4
// license that can be found in the LICENSE file.
5
5
6
+ //go:build !js && !plan9 && !wasip1
7
+
6
8
package flock_test
7
9
8
10
import (
Original file line number Diff line number Diff line change 3
3
// Use of this source code is governed by the BSD 3-Clause
4
4
// license that can be found in the LICENSE file.
5
5
6
- //go:build !aix && (!solaris || illumos) && !windows
6
+ //go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
7
7
8
8
package flock
9
9
Original file line number Diff line number Diff line change 3
3
// Use of this source code is governed by the BSD 3-Clause
4
4
// license that can be found in the LICENSE file.
5
5
6
+ //go:build windows
7
+
6
8
package flock
7
9
8
10
import (
You can’t perform that action at this time.
0 commit comments