Skip to content

Commit

Permalink
Release script fixes (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-bebbington committed Aug 11, 2020
1 parent a46c0e8 commit 719b7f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -38,6 +38,10 @@ $(TOOLS_DIR)/stringer: $(TOOLS_MOD_DIR)/go.mod $(TOOLS_MOD_DIR)/go.sum $(TOOLS_M
cd $(TOOLS_MOD_DIR) && \
go build -o $(TOOLS_DIR)/stringer golang.org/x/tools/cmd/stringer

$(TOOLS_DIR)/gojq: $(TOOLS_MOD_DIR)/go.mod $(TOOLS_MOD_DIR)/go.sum $(TOOLS_MOD_DIR)/tools.go
cd $(TOOLS_MOD_DIR) && \
go build -o $(TOOLS_DIR)/gojq github.com/itchyny/gojq/cmd/gojq

precommit: generate build lint test

.PHONY: test-with-coverage
Expand Down
4 changes: 2 additions & 2 deletions tag.sh
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

readonly PROGNAME=$(basename "$0")
readonly PROGDIR=$(readlink -m "$(dirname "$0")")
readonly PROGDIR=$(pwd)

readonly EXCLUDE_PACKAGES="tools"
readonly SEMVER_REGEX="v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?"
Expand Down Expand Up @@ -126,7 +126,7 @@ git_tag() {
local tag="$1"
local commit="$2"

git tag -a "$tag" -s -m "Version $tag" "$commit"
git tag -a "$tag" -m "Version $tag" "$commit"
}

previous_version() {
Expand Down

0 comments on commit 719b7f2

Please sign in to comment.