~humaid/hmsh-go

22d8d68afbba16f2462d6be12f48e6a4a3b4bf24 — Humaid AlQassimi 1 year, 2 months ago 99a83f1
Fix build file and vet issues
4 files changed, 10 insertions(+), 6 deletions(-)

M .build.yml
M .gitignore
A go.mod
M main.go
M .build.yml => .build.yml +5 -5
@@ 2,18 2,18 @@ image: archlinux
packages:
  - go
sources:
  - https://git.sr.ht/~humaid/hmsh
  - https://git.sr.ht/~humaid/hmsh-go
tasks:
  - setup: |
      cd hmsh
      cd hmsh-go
      go get ./...
  - format: |
      cd hmsh
      cd hmsh-go
      go fmt $(go list ./... | grep -v /vendor/)
      go vet $(go list ./... | grep -v /vendor/)
  - test: |
      cd hmsh
      cd hmsh-go
      go test -cover -race $(go list ./... | grep -v /vendor/)
  - build: |
      cd hmsh
      cd hmsh-go
      go build

M .gitignore => .gitignore +1 -0
@@ 1,1 1,2 @@
hmsh
resources

A go.mod => go.mod +3 -0
@@ 0,0 1,3 @@
module git.sr.ht/~humaid/hmsh-go

go 1.13

M main.go => main.go +1 -1
@@ 32,7 32,7 @@ var (
func printPrompt() {
	workDir, err := os.Getwd()
	if err != nil {
		fmt.Errorf("Cannot get current working directory!")
		panic("Cannot get current working directory!")
	}
	var prompt rune
	if os.Getuid() == 0 {