Skip to content

Commit

Permalink
prevent from building for windows
Browse files Browse the repository at this point in the history
bazel-remote does not work on windows, due to the way we interact with
the filesystem. Let's prevent windows builds from succeeding, to avoid
wasting windows users' time trying.

Background: buchgr#184
  • Loading branch information
mostynb committed May 27, 2020
1 parent 602041a commit d596cff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils/rlimit/rlimit_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

package rlimit

// On unix, we need to raise the limit on the number of open files.
// Unsure if anything is required on windows, or if bazel-remote even
// works on windows. But let's not intentionally prevent compiling
// for windows.
// bazel-remote does not work with windows, due to the way we interact
// with the filesystem. Let's try to give a reasonable compile-time
// error message to prevent windows users from wasting their time trying.
var _ = WindowsBuildsAreNotSupported()

func Raise() {
}

0 comments on commit d596cff

Please sign in to comment.