Skip to content

Commit

Permalink
Merge pull request #588 from rgooch/master
Browse files Browse the repository at this point in the history
Make builder-tool with build-image subcommand compile and work on MacOS.
  • Loading branch information
rgooch committed Apr 7, 2019
2 parents 961ee76 + 874024a commit 7520e05
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cmd/builder-tool/buildImage.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build linux

package main

import (
Expand Down
4 changes: 1 addition & 3 deletions cmd/builder-tool/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build linux

package main

import (
Expand Down Expand Up @@ -36,7 +34,7 @@ var (
maxSourceAge = flag.Duration("maxSourceAge", time.Hour,
"Maximum age of a source image before it is rebuilt")

minimumExpiration = 15 * time.Minute
minimumExpiration = 5 * time.Minute
)

func printUsage() {
Expand Down
16 changes: 15 additions & 1 deletion cmd/builder-tool/stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,23 @@ package main

import (
"os"

"github.com/Symantec/Dominator/lib/log"
)

func main() {
func notAvailable() {
os.Stderr.Write([]byte("Not available on this OS\n"))
os.Exit(1)
}

func buildFromManifestSubcommand(args []string, logger log.Logger) {
notAvailable()
}

func buildTreeFromManifestSubcommand(args []string, logger log.Logger) {
notAvailable()
}

func processManifestSubcommand(args []string, logger log.Logger) {
notAvailable()
}

0 comments on commit 7520e05

Please sign in to comment.