Prepare for release v2.7.0, start with v2.7.0-rc1

Since we have never released with goreleaser and GO111MODULE=on
and have removed vendor directory, we are going to push a
v2.7.0-rc1 tag. If the goreleaser process works fine and submit
the draft release correctly, we will not do an actual v2.7.0-rc1
release. Instead, we will follow up immediately with the v2.7.0
tag and the proper release.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2022-01-13 14:22:17 -07:00
parent 56d5a04efd
commit 59eef192cd
7 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ jobs:
env:
GOPATH: /home/runner/work/nats-server
GO111MODULE: "off"
GO111MODULE: "on"
runs-on: ubuntu-latest
steps:
@@ -36,7 +36,7 @@ jobs:
go build
$(exit $(go fmt $GO_LIST | wc -l))
go vet $GO_LIST
find . -type f -name "*.go" | grep -v "/vendor/" | xargs $GOPATH/bin/misspell -error -locale US
find . -type f -name "*.go" | xargs $GOPATH/bin/misspell -error -locale US
$GOPATH/bin/staticcheck $GO_LIST
- name: Run tests

View File

@@ -12,7 +12,7 @@ jobs:
env:
GOPATH: /home/runner/work/nats-server
GO111MODULE: "off"
GO111MODULE: "on"
steps:
- name: Checkout code

View File

@@ -7,7 +7,7 @@ builds:
ldflags:
- -w -X github.com/nats-io/nats-server/server.gitCommit={{.ShortCommit}}
env:
- GO111MODULE=off
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- linux

View File

@@ -16,7 +16,7 @@ builds:
ldflags:
- -w -X github.com/nats-io/nats-server/server.gitCommit={{.ShortCommit}}
env:
- GO111MODULE=off
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- darwin

View File

@@ -14,17 +14,17 @@ addons:
packages:
- rpm
env:
- GO111MODULE=off
- GO111MODULE=on
go_import_path: github.com/nats-io/nats-server
install:
- GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@latest
- GO111MODULE=on go install github.com/client9/misspell/cmd/misspell@latest
- go install honnef.co/go/tools/cmd/staticcheck@latest
- go install github.com/client9/misspell/cmd/misspell@latest
before_script:
- GO_LIST=$(go list ./...)
- go build
- $(exit $(go fmt $GO_LIST | wc -l))
- go vet $GO_LIST
- find . -type f -name "*.go" | grep -v "/vendor/" | xargs misspell -error -locale US
- find . -type f -name "*.go" | xargs misspell -error -locale US
- staticcheck $GO_LIST
script:
- set -e
@@ -38,7 +38,7 @@ after_success:
deploy:
provider: script
cleanup: true
script: curl -sL http://git.io/goreleaser | VERSION=v0.160.0 bash
script: curl -sL http://git.io/goreleaser
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ 1.16
condition: $TRAVIS_GO_VERSION =~ 1.17

View File

@@ -1,7 +1,7 @@
#!/bin/bash -e
# Run from directory above via ./scripts/cov.sh
export GO111MODULE="off"
export GO111MODULE="on"
go get github.com/mattn/goveralls
go get github.com/wadey/gocovmerge

View File

@@ -41,7 +41,7 @@ var (
const (
// VERSION is the current version for the server.
VERSION = "2.7.0-beta"
VERSION = "2.7.0-rc1"
// PROTO is the currently supported protocol.
// 0 was the original