hashicorp / go-secure-stdlib

Mozilla Public License 2.0
64 stars 24 forks source link

mlock: Remove android build tag #16

Closed paulburlumi closed 2 years ago

paulburlumi commented 2 years ago

Using GOOS=android matches build tags and files as for GOOS=linux in addition to android tags and files. See https://groups.google.com/g/golang-nuts/c/ZTGMjhEV7uY for further details.

Without this change when using gomobile bind I see the following error:

# github.com/hashicorp/go-secure-stdlib/mlock
../pkg/mod/github.com/hashicorp/go-secure-stdlib/mlock@v0.1.1/mlock_unix.go:15:6: lockMemory redeclared in this block
        /tmp/gomobile-work-2337392267/pkg/mod/github.com/hashicorp/go-secure-stdlib/mlock@v0.1.1/mlock_unavail.go:9:19: previous declaration