Skip to content

Commit 29812f7

Browse files
committed
Fixed building for Solaris
`unix` actually supports Flock after golang/go#21410 Signed-off-by: Fedor Korotkov <[email protected]>
1 parent 711f3aa commit 29812f7

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
os_archs=(
6+
darwin/amd64
7+
freebsd/amd64
8+
linux/amd64
9+
solaris/amd64
10+
windows/amd64
11+
)
12+
13+
for os_arch in "${os_archs[@]}"
14+
do
15+
goos=${os_arch%/*}
16+
goarch=${os_arch#*/}
17+
echo "Building $goos/$goarch..."
18+
CGO_ENABLED=0 GOOS=${goos} GOARCH=${goarch} go build -o /dev/null ./...
19+
done
20+
21+
echo "Succeeded building binaries for all supported OS/ARCH pairs!"

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ install:
1111

1212
script:
1313
- make test-coverage
14+
- ./.ci/test-building-binaries-for-supported-os.sh
1415

1516
after_success:
1617
- bash <(curl -s https://codecov.io/bash)

osfs/os_posix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows,!solaris
1+
// +build !windows
22

33
package osfs
44

osfs/os_solaris.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)