Skip to content

Commit

Permalink
Fix generation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkoyun committed Apr 11, 2020
1 parent 5e38112 commit 62b8018
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ clone:
depth: 50

steps:
# This is needed for the tags. And the tags are needed to determine version.
- name: fetch
image: docker:git
commands:
- git fetch --tags
- name: configure-buckets
image: minio/mc:RELEASE.2018-09-26T00-42-43Z
commands:
Expand Down Expand Up @@ -52,7 +57,7 @@ steps:
image: golang:1.14.1-alpine3.11
commands:
- apk add --update make git
- make generate
- env -i make PATH=$PATH HOME=$HOME PWD=$PWD GOPATH=$GOPATH generate
- git diff --exit-code

- name: rebuild-cache
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ROOT_DIR := $(CURDIR)
SCRIPTS := $(ROOT_DIR)/scripts

VERSION := $(strip $(shell [ -d .git ] && git describe --always --tags --dirty))
VERSION := $(strip $(shell [ -d .git ] && git describe --abbrev=0))
LONG_VERSION := $(strip $(shell [ -d .git ] && git describe --always --tags --dirty))
BUILD_DATE := $(shell date -u +"%Y-%m-%dT%H:%M:%S%Z")
VCS_REF := $(strip $(shell [ -d .git ] && git rev-parse HEAD))

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ USAGE:
drone-cache [global options] command [command options] [arguments...]
VERSION:
v1.1.0-rc0-5-g63b3af3-dirty
v1.1.0-rc0
COMMANDS:
help, h Shows a list of commands or help for one command
Expand Down

0 comments on commit 62b8018

Please sign in to comment.