Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Created November 12, 2019 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaihendry/14ecb57e3a1f14f96cb1516788bc2ac3 to your computer and use it in GitHub Desktop.
Save kaihendry/14ecb57e3a1f14f96cb1516788bc2ac3 to your computer and use it in GitHub Desktop.
GO=go
GOBUILD=${GO} build
GOINSTALL=${GO} install
GOTEST=${GO} test
GOPROXY=https://proxy.golang.org,direct
GOPRIVATE=source.example.com
GOTOOL=${GO} tool
.PHONY: env
env:
@echo "GOVERSION: $(shell ${GO} version)"
@echo "GITVERSION: $(shell git --version)"
@echo "GO111MODULE: $(shell ${GO} env GO111MODULE)"
@echo "GOFLAGS: $(shell ${GO} env GOFLAGS)"
@echo "GOPRIVATE: $(shell ${GO} env GOPRIVATE)"
@echo "GOPROXY: $(shell ${GO} env GOPROXY)"
@echo "GONOPROXY: $(shell ${GO} env GONOPROXY)"
@echo "GOSUMDB: $(shell ${GO} env GOSUMDB)"
@echo "GONOSUMDB: $(shell ${GO} env GONOSUMDB)"
@echo "PATH: $(PATH)"
@echo "SHELL: $(SHELL)"
sonar: test
@${GO} env GOPROXY
@kaihendry
Copy link
Author

Output is bizarre:

$ make sonar
GOVERSION:   go version go1.13.3 linux/amd64
GITVERSION:  git version 2.7.4
GO111MODULE: 
GOFLAGS:     
GOPRIVATE:   
GOPROXY:     direct
GONOPROXY:   
GOSUMDB:     off
GONOSUMDB:   
PATH:        /opt/sonar/sonar-scanner-4.0.0.1744-linux/bin/:/usr/local/openjdk-8/bin:/usr/local/go/bin:/.go/bin:/usr/local/go/bin:/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELL:       /bin/sh
https://proxy.golang.org,direct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment