Skip to content

Commit

Permalink
start move to go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Apr 29, 2021
1 parent c01f59c commit 6838d70
Show file tree
Hide file tree
Showing 445 changed files with 395 additions and 173,243 deletions.
146 changes: 0 additions & 146 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

25 changes: 4 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
GO_LINKER_SYMBOL := "main.version"

all: test build

clean:
rm -rf _exe/

build:
godep go build -x -o _exe/befehl executor/befehl_main.go
go build -x -o _exe/befehl cmd/main/main.go

test:
godep go test -v

install: ldflags
go install -a ${LDFLAGS} ./...

update-deps: godep
godep save -r ./...

godep:
go get -u github.com/tools/godep

glv:
$(eval GO_LINKER_VALUE := $(shell git describe --tags --always))

ldflags: glv
$(eval LDFLAGS := -ldflags "-X ${GO_LINKER_SYMBOL} ${GO_LINKER_VALUE}")
go test -v

ver:
$(eval VERSION := $(shell echo ${GO_LINKER_VALUE} | sed s/^v//))
update-deps:
go get -u
4 changes: 3 additions & 1 deletion cmd/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package cmd

import (
"fmt"
"github.com/sgsullivan/befehl"

"github.com/spf13/cobra"

"github.com/sgsullivan/befehl"
)

var payload string
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"os"

"github.com/spf13/cobra"
"github.com/spf13/viper"
"os"
)

var Config *viper.Viper
Expand Down
22 changes: 22 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module github.com/sgsullivan/befehl

go 1.15

require (
github.com/fatih/color v1.10.0
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pelletier/go-toml v1.9.0 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.3
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.7.1
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
golang.org/x/sys v0.0.0-20210426230700-d19ff857e887 // indirect
golang.org/x/term v0.0.0-20210422114643-f5beecf764ed // indirect
golang.org/x/text v0.3.6 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
)

0 comments on commit 6838d70

Please sign in to comment.