Commit 8e9b3507 by bergquist

tech: removes unused code

parent 034f5921
...@@ -49,8 +49,6 @@ func main() { ...@@ -49,8 +49,6 @@ func main() {
ensureGoPath() ensureGoPath()
verifyGitRepoIsClean()
flag.StringVar(&goarch, "goarch", runtime.GOARCH, "GOARCH") flag.StringVar(&goarch, "goarch", runtime.GOARCH, "GOARCH")
flag.StringVar(&goos, "goos", runtime.GOOS, "GOOS") flag.StringVar(&goos, "goos", runtime.GOOS, "GOOS")
flag.StringVar(&gocc, "cc", "", "CC") flag.StringVar(&gocc, "cc", "", "CC")
...@@ -325,20 +323,6 @@ func createPackage(options linuxPackageOptions) { ...@@ -325,20 +323,6 @@ func createPackage(options linuxPackageOptions) {
runPrint("fpm", append([]string{"-t", options.packageType}, args...)...) runPrint("fpm", append([]string{"-t", options.packageType}, args...)...)
} }
func verifyGitRepoIsClean() {
rs, err := runError("git", "ls-files", "--modified")
if err != nil {
log.Fatalf("Failed to check if git tree was clean, %v, %v\n", string(rs), err)
return
}
count := len(string(rs))
if count > 0 {
log.Fatalf("Git repository has modified files, aborting")
}
log.Println("Git repository is clean")
}
func ensureGoPath() { func ensureGoPath() {
if os.Getenv("GOPATH") == "" { if os.Getenv("GOPATH") == "" {
cwd, err := os.Getwd() cwd, err := os.Getwd()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment