Skip to content

Commit a1a3ea1

Browse files
committed
Mechanism for forcing a golint update
They don't version releases, so it's always a matter of installing whatever's latest. Similar to some other projects, I've added a file we can touch to force expire docker layer caches & get a new version.
1 parent 9ffe218 commit a1a3ea1

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

DATE_BUILT

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tue Oct 17 12:36:42 EDT 2017

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ MAINTAINER Code Climate <[email protected]>
44

55
WORKDIR /usr/src/app
66
COPY codeclimate-golint.go /usr/src/app/codeclimate-golint.go
7+
COPY DATE_BUILT /usr/src/app/DATE_BUILT
78

89
RUN apk --update add go git && \
910
export GOPATH=/tmp/go GOBIN=/usr/local/bin && \

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ engines:
3131
docker build -t codeclimate/codeclimate-golint .
3232
```
3333

34+
### Updating
35+
36+
`golint` doesn't version releases, so in order to get the latest version & force
37+
a new docker image build, we have a `DATE_BUILT` file: to force an update of
38+
golint, run `date > DATE_BUILT` locally & then rebuild the docker image.
39+
3440
### Need help?
3541

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

0 commit comments

Comments
 (0)