Skip to content

Commit

Permalink
Migrating from Dep to Go Modules (#119)
Browse files Browse the repository at this point in the history
switch project to go modules and upgrade svcat version
  • Loading branch information
div-co authored Feb 1, 2021
1 parent e53c687 commit c38bb88
Show file tree
Hide file tree
Showing 9 changed files with 1,044 additions and 1,082 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}

- name: Get dependencies
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
run: |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

- name: Test
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
Expand Down
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ env:
- CHART_TGZ_NAME="${CHART_NAME}.tgz"
- CHART_URL="https://github.com/Peripli/service-broker-proxy-k8s/releases/download/${TRAVIS_TAG:-\"0.0.0\"}/${CHART_TGZ_NAME}"

before_install:
- go get -u github.com/golang/dep/cmd/dep
- make dep-vendor

install:
- go get github.com/alecthomas/gometalinter
# - go get github.com/GoASTScanner/gas/cmd/gas/...
Expand Down
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ FROM golang:1.12.7-alpine3.10 AS builder

# We need so that dep can fetch it's dependencies
RUN apk --no-cache add git
RUN go get github.com/golang/dep/cmd/dep

# Directory in workspace
WORKDIR "/go/src/github.com/Peripli/service-broker-proxy-k8s"

# Copy dep files only and ensure dependencies are satisfied
COPY Gopkg.lock Gopkg.toml ./
RUN dep ensure -vendor-only -v

# Copy and build source code
COPY . ./
ENV GO111MODULE=on
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o /main main.go

########################################################
Expand Down
Loading

0 comments on commit c38bb88

Please sign in to comment.