Skip to content

Commit

Permalink
Remove unused Godeps files; update README for Go Modules (#1114)
Browse files Browse the repository at this point in the history
* Remove unused Godeps files; update README for Go Modules

* Remove unused Godeps files; update README for Go Modules

* Remove unused Godeps files; update README for Go Modules

* Remove unused Godeps files; update README for Go Modules

* Remove unused Godeps files; update README for Go Modules

* Update README to include dependency mgmt using go get

* Clean up Dockerfile from godeps commands

* Remove godep from travis config
  • Loading branch information
mrutkows authored Feb 17, 2021
1 parent 7093f6c commit 7126d6c
Show file tree
Hide file tree
Showing 8 changed files with 165 additions and 289 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ install:
- export DEPLOY_BUILD_READY=false
- go get -u golang.org/x/lint/golint
- go get -u github.com/stretchr/testify
- go get -u github.com/tools/godep
before_script:
- GO_FILES=$(find . -iname '*.go' -type f -not -path "./wski18n/i18n_resources.go")
- export BAD_GO=$(gofmt -s -l $(echo $GO_FILES))
Expand Down
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,16 @@
# limitations under the License.
#

FROM golang:1.9
FROM golang:1.15

# Install zip
RUN apt-get -y update && \
apt-get -y install zip emacs

ENV GOPATH=/

# Download and install tools
RUN echo "Installing the godep tool"
RUN go get github.com/tools/godep

ADD . /src/github.com/apache/openwhisk-wskdeploy

# Load all of the dependencies from the previously generated/saved godep generated godeps.json file
RUN echo "Restoring Go dependencies"
RUN cd /src/github.com/apache/openwhisk-wskdeploy && /bin/godep restore -v

# All of the Go CLI binaries will be placed under a build folder
RUN rm -rf /src/github.com/apache/openwhisk-wskdeploy/build
RUN mkdir /src/github.com/apache/openwhisk-wskdeploy/build
Expand Down
176 changes: 0 additions & 176 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ BUILD=`git rev-parse HEAD`

BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`

deps:
@echo "Installing dependencies"
godep restore -v

LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.GitCommit=${BUILD} -X main.BuildDate=${BUILD_DATE} -X main.Build=`git rev-parse HEAD` "

test: deps
test:
@echo "Testing"
go test ./... -tags=unit

Expand Down
Loading

0 comments on commit 7126d6c

Please sign in to comment.