From 4b8169ec225df3cd594bc095fa7235e1fc608bc3 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Mon, 2 Dec 2019 19:55:41 -0600 Subject: [PATCH] Misc build --- .gitignore | 4 +++- Makefile | 8 ++++++-- go.sum | 1 + main.go | 1 + 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index bcfe348..bf826d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ DS_Store *.log *.json -github-events \ No newline at end of file +github-events +bin +bin/* \ No newline at end of file diff --git a/Makefile b/Makefile index 30ae77d..dab8687 100644 --- a/Makefile +++ b/Makefile @@ -4,5 +4,9 @@ build: go build clean: - rm *.json - rm *.log + rm -f *.json + rm -f *.log + +release: + GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ./bin/github-events_linux_amd64 + GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o ./bin/github-events_darwin_amd64 \ No newline at end of file diff --git a/go.sum b/go.sum index 6fe23f0..32a3acf 100644 --- a/go.sum +++ b/go.sum @@ -42,6 +42,7 @@ golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c h1:HjRaKPaiWks0f5tA6ELVF7ZfqSppfPwOEEAvsrKUTO4= golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/main.go b/main.go index e56a402..da3f91e 100644 --- a/main.go +++ b/main.go @@ -26,6 +26,7 @@ import ( ) var ( + version = "0.1.0" proxyEndpoint = "https://github-events-proxy.herokuapp.com" reRepoHTTP = regexp.MustCompile(`^https?://.*github.com.*/(.+)/(.+?)(?:.git)?$`)