From 97364fd0b67785298169f154a747df9ab3633399 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 15 Jun 2017 20:10:54 +0100 Subject: [PATCH] ncdu: disable on plan9 and solaris as termbox isn't supported there --- cmd/ncdu/ncdu.go | 4 ++++ cmd/ncdu/ncdu_unsupported.go | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 cmd/ncdu/ncdu_unsupported.go diff --git a/cmd/ncdu/ncdu.go b/cmd/ncdu/ncdu.go index 180c674b3..227db165a 100644 --- a/cmd/ncdu/ncdu.go +++ b/cmd/ncdu/ncdu.go @@ -1,3 +1,7 @@ +// Package ncdu implements a text based user interface for exploring a remote + +//+build !plan9,!solaris + package ncdu import ( diff --git a/cmd/ncdu/ncdu_unsupported.go b/cmd/ncdu/ncdu_unsupported.go new file mode 100644 index 000000000..b5248e791 --- /dev/null +++ b/cmd/ncdu/ncdu_unsupported.go @@ -0,0 +1,6 @@ +// Build for ncdu for unsupported platforms to stop go complaining +// about "no buildable Go source files " + +// +build plan9 solaris + +package ncdu