From 1b08d999ebadadc2dbea1020cec2ec17c6caa845 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Nov 2021 17:38:50 -0500 Subject: [PATCH] MAKE: update Makefile rules Signed-off-by: Jeff Carr --- example1/Makefile | 4 ++-- example2/Makefile | 4 ++-- example2/main.go | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example1/Makefile b/example1/Makefile index 9fc318d..7b4c2b6 100644 --- a/example1/Makefile +++ b/example1/Makefile @@ -1,3 +1,3 @@ all: - go build - ./example1 + # go build + GO111MODULE="off" go run main.go diff --git a/example2/Makefile b/example2/Makefile index 250e900..7b4c2b6 100644 --- a/example2/Makefile +++ b/example2/Makefile @@ -1,3 +1,3 @@ all: - go build - ./example2 + # go build + GO111MODULE="off" go run main.go diff --git a/example2/main.go b/example2/main.go index f19adf4..2e94c7f 100644 --- a/example2/main.go +++ b/example2/main.go @@ -1,11 +1,11 @@ package main import "log" -import "fmt" +// import "fmt" import "git.wit.org/wit/shell" func main() { - tmp, output, err := shell.Run("cat /etc/issue") - log.Println("cat /etc/issue returned", tmp, "error =", err) - fmt.Print(output) + err := shell.Run("cat /etc/issue") + log.Println("cat /etc/issue returned", err) + // fmt.Print(output) }