Skip to content

remove glide in favour of go modules #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ services:
- docker

go:
- 1.9.x
- 1.17.x


jobs:
include:
- stage: test
before_install:
- go get -u github.com/Masterminds/glide
- go get -u github.com/alecthomas/gometalinter
- go install github.com/alecthomas/gometalinter
install:
- glide install
- gometalinter --install
script:
- ./scripts/test.sh
Expand Down
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ FROM node:9.8-alpine as node
ADD frontend/ .
RUN npm install && npm run build

FROM golang:1.10-alpine as golang
FROM golang:1.17-alpine as golang
RUN apk --no-cache add git
WORKDIR /go/src/github.com/planetlabs/kubehook/
ENV CGO_ENABLED=0
ADD . .
COPY --from=node dist/ dist/frontend
COPY --from=node index.html dist/frontend/
RUN go get -u github.com/Masterminds/glide && \
go get -u github.com/rakyll/statik && \
glide install
RUN cd statik && go generate && cd ..
RUN go install github.com/rakyll/statik && \
cd statik && go generate
RUN go build -o /kubehook ./cmd/kubehook

FROM alpine:3.7
MAINTAINER Nic Cope <[email protected]>
RUN apk --no-cache add ca-certificates
COPY --from=golang /kubehook /
COPY --from=golang /kubehook /
184 changes: 0 additions & 184 deletions glide.lock

This file was deleted.

32 changes: 0 additions & 32 deletions glide.yaml

This file was deleted.

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

go 1.17

require (
github.com/dgrijalva/jwt-go v3.1.0+incompatible
github.com/dyson/certman v0.2.1
github.com/go-test/deep v1.0.8
github.com/julienschmidt/httprouter v1.1.0
github.com/pkg/errors v0.8.0
github.com/rakyll/statik v0.1.1
go.uber.org/zap v1.7.1
gopkg.in/alecthomas/kingpin.v2 v2.2.6
k8s.io/api v0.0.0-20171207041203-11147472b7c9
k8s.io/apimachinery v0.0.0-20171207040834-180eddb345a5
k8s.io/client-go v0.0.0-20171207042602-78700dec6369
)

require (
github.com/PuerkitoBio/purell v1.0.0 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2 // indirect
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful v1.1.4-0.20170410110728-ff4f55a20633 // indirect
github.com/fsnotify/fsnotify v1.4.8-0.20190312181446-1485a34d5d57 // indirect
github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680 // indirect
github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1 // indirect
github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9 // indirect
github.com/go-openapi/spec v0.0.0-20170914061247-7abd5745472f // indirect
github.com/go-openapi/swag v0.0.0-20170606142751-f3f9494671f9 // indirect
github.com/gogo/protobuf v0.0.0-20170330071051-c0656edd0d9e // indirect
github.com/golang/glog v0.0.0-20141105023935-44145f04b68c // indirect
github.com/google/btree v0.0.0-20160524151835-7d79101e329e // indirect
github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367 // indirect
github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7 // indirect
github.com/howeyc/gopass v0.0.0-20170109162249-bf9dde6d0d2c // indirect
github.com/imdario/mergo v0.0.0-20141206190957-6633656539c1 // indirect
github.com/json-iterator/go v0.0.0-20170829155851-36b14963da70 // indirect
github.com/juju/ratelimit v0.0.0-20170523012141-5b9ff8664717 // indirect
github.com/mailru/easyjson v0.0.0-20170624190925-2f5df55504eb // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff // indirect
github.com/stretchr/testify v1.7.0 // indirect
go.uber.org/atomic v1.3.2 // indirect
go.uber.org/multierr v1.1.0 // indirect
golang.org/x/crypto v0.0.0-20170825220121-81e90905daef // indirect
golang.org/x/net v0.0.0-20170809000501-1c05540f6879 // indirect
golang.org/x/sys v0.0.0-20171031081856-95c657629925 // indirect
golang.org/x/text v0.0.0-20170810154203-b19bf474d317 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/inf.v0 v0.9.0 // indirect
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0 // indirect
gopkg.in/yaml.v2 v2.0.0-20150924142314-53feefa2559f // indirect
k8s.io/kube-openapi v0.0.0-20171101183504-39a7bf85c140 // indirect
)
Loading