Skip to content

Commit

Permalink
use go modules instead of dep
Browse files Browse the repository at this point in the history
This removes Gopkg.* and the entire /vendor directory. I also try tweaking the CI configs to use go 1.12

weird path?

use certstore v0.0.5

don't disable install

try GO111MODULE=on

appveyor too
  • Loading branch information
btoews committed May 1, 2019
1 parent 4e6fec2 commit 2ebdbe6
Show file tree
Hide file tree
Showing 532 changed files with 52 additions and 126,299 deletions.
4 changes: 3 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ init:
- set CGO_ENABLED=1
# Paths and Go environment
- set GOPATH=c:\gopath
- set GOROOT=c:\go
- set GOROOT=c:\go112
- set PATH=%GOROOT%\bin;%GOPATH%\bin;C:\msys64\usr\bin;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
- set PATH_WAS=%PATH%
# appveyor sets GO111MODULE=auto, which we don't want
- set GO111MODULE=on

install:
- go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
Expand Down
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ os: osx
language: go

go:
- 1.10.x
- 1.11.x
- 1.12.x
- 1.x
- master

Expand All @@ -15,9 +14,9 @@ install: ''

script:
- GIT_VERSION=$(git describe --tags)
- go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
- GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
- tar czf smimesign-$GIT_VERSION-macos.tgz smimesign
- go test -v ./...
- GO111MODULE=on go test -v ./...

deploy:
name: v$GIT_VERSION
Expand Down
114 changes: 0 additions & 114 deletions Gopkg.lock

This file was deleted.

46 changes: 0 additions & 46 deletions Gopkg.toml

This file was deleted.

16 changes: 16 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module github.com/github/smimesign

go 1.12

require (
github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261
github.com/davecgh/go-spew v1.1.1
github.com/mastahyeti/certstore v0.0.5
github.com/mastahyeti/cms v0.0.6
github.com/mastahyeti/fakeca v0.0.1
github.com/pborman/getopt v0.0.0-20180811024354-2b5b3bfb099b
github.com/pkg/errors v0.8.0
github.com/pmezard/go-difflib v1.0.0
github.com/stretchr/testify v1.3.0
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734
)
30 changes: 30 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261 h1:6/yVvBsKeAw05IUj4AzvrxaCnDjN4nUqKjW9+w5wixg=
github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261/go.mod h1:GJKEexRPVJrBSOjoqN5VNOIKJ5Q3RViH6eu3puDRwx4=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/mastahyeti/certstore v0.0.4 h1:lIS0StbHgmgUIpen7aayW+BGBFs7g141fOcjuobrFj8=
github.com/mastahyeti/certstore v0.0.4/go.mod h1:G29tHH2jDKK45cvISMzk8ZRf3KrhRS7ptoteyYzztsk=
github.com/mastahyeti/certstore v0.0.5 h1:8JV/YC8jN6SD+ocJi46PSdxXfPxwgilJJEA8HnG49ls=
github.com/mastahyeti/certstore v0.0.5/go.mod h1:NHRRUQaEsIFEo+2nAxmf6oSdjb5g8LJoHx0nyND25G8=
github.com/mastahyeti/cms v0.0.6 h1:uBCHEpysYW9vpxunhDwX/+ptTNDRqPkCA0j/XT/2zZM=
github.com/mastahyeti/cms v0.0.6/go.mod h1:AMtGAAONAIEUX7kXN2o5oBLtMlU3+/w0xfEyBgtkB4Y=
github.com/mastahyeti/fakeca v0.0.1 h1:4yzOmKJPS34k5zSKuapDkyShN1gVHteF7iD5xMOC/4A=
github.com/mastahyeti/fakeca v0.0.1/go.mod h1:FUs0aY6rbIiAh2dqCkvirZMFXOc3zH1r6ELiNyNy+FQ=
github.com/pborman/getopt v0.0.0-20180811024354-2b5b3bfb099b h1:K1wa7ads2Bu1PavI6LfBRMYSy6Zi+Rky0OhWBfrmkmY=
github.com/pborman/getopt v0.0.0-20180811024354-2b5b3bfb099b/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o=
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734 h1:p/H982KKEjUnLJkM3tt/LemDnOc1GiZL5FCVlORJ5zo=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
3 changes: 0 additions & 3 deletions vendor/github.com/certifi/gocertifi/LICENSE

This file was deleted.

60 changes: 0 additions & 60 deletions vendor/github.com/certifi/gocertifi/README.md

This file was deleted.

Loading

0 comments on commit 2ebdbe6

Please sign in to comment.