From 8e5bfabbd30459a7495113b3d3da9375d4f1b222 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sat, 2 Nov 2024 22:14:39 +0100 Subject: [PATCH 1/2] add arm64 builds for linux and darwin --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 1efd5c9..d9acae0 100644 --- a/Makefile +++ b/Makefile @@ -56,10 +56,18 @@ build: deps -o gfmrun-linux-amd64-$(VERSION_VALUE) \ -ldflags "$(GOBUILD_LDFLAGS)" \ ./cmd/gfmrun/main.go && \ + GOOS=linux GOARCH=arm64 $(GO) build \ + -o gfmrun-linux-arm64-$(VERSION_VALUE) \ + -ldflags "$(GOBUILD_LDFLAGS)" \ + ./cmd/gfmrun/main.go && \ GOOS=darwin GOARCH=amd64 $(GO) build \ -o gfmrun-darwin-amd64-$(VERSION_VALUE) \ -ldflags "$(GOBUILD_LDFLAGS)" \ ./cmd/gfmrun/main.go && \ + GOOS=darwin GOARCH=arm64 $(GO) build \ + -o gfmrun-darwin-arm64-$(VERSION_VALUE) \ + -ldflags "$(GOBUILD_LDFLAGS)" \ + ./cmd/gfmrun/main.go && \ GOOS=windows GOARCH=amd64 $(GO) build \ -o gfmrun-windows-amd64-$(VERSION_VALUE).exe \ -ldflags "$(GOBUILD_LDFLAGS)" \ From bd3110785873c6428ed9171b1707a4d6fc774000 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sun, 3 Nov 2024 07:22:32 +0100 Subject: [PATCH 2/2] fix reference of `golang.org/x/example/stringutil` It was renamed in https://github.com/golang/go/issues/61722 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cbfa00..82400c2 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ import ( "fmt" "os" - "golang.org/x/example/stringutil" + "golang.org/x/example/hello/reverse" ) func main() { fmt.Printf("---> %v\n", os.Args[0]) fmt.Println("we could make an entire album out of this one sound") - fmt.Println(stringutil.Reverse("[SQUEAK INTENSIFIES]")) + fmt.Println(reverse.String("[SQUEAK INTENSIFIES]")) } ```