Skip to content

Mechanism for forcing a golint update #19

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

Merged
merged 1 commit into from
Oct 17, 2017
Merged
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
1 change: 1 addition & 0 deletions DATE_BUILT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tue Oct 17 12:36:42 EDT 2017
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ MAINTAINER Code Climate <hello@codeclimate.com>

WORKDIR /usr/src/app
COPY codeclimate-golint.go /usr/src/app/codeclimate-golint.go
COPY DATE_BUILT /usr/src/app/DATE_BUILT

RUN apk --update add go git && \
export GOPATH=/tmp/go GOBIN=/usr/local/bin && \
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ engines:
docker build -t codeclimate/codeclimate-golint .
```

### Updating

`golint` doesn't version releases, so in order to get the latest version & force
a new docker image build, we have a `DATE_BUILT` file: to force an update of
golint, run `date > DATE_BUILT` locally & then rebuild the docker image.

### Need help?

For help with Golint, [check out their documentation](https://github.com/golang/lint).
Expand Down