mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
DOCS: Update for vendor-less builds
This commit is contained in:
@@ -9,7 +9,7 @@ These are the instructions for producing a release.
|
|||||||
Please change the version number as appropriate.
|
Please change the version number as appropriate.
|
||||||
|
|
||||||
|
|
||||||
## Step 0. Tools check
|
## Step 1. Tools check
|
||||||
|
|
||||||
Make sure you are using the latest version of `go`
|
Make sure you are using the latest version of `go`
|
||||||
(listed on [https://golang.org/dl/](https://golang.org/dl/))
|
(listed on [https://golang.org/dl/](https://golang.org/dl/))
|
||||||
@@ -18,21 +18,6 @@ Make sure you are using the latest version of `go`
|
|||||||
go version
|
go version
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 1. Vendor the modules
|
|
||||||
|
|
||||||
Vendor the modules. The vendored files are not used (unless you change
|
|
||||||
the builds to use `-mod=vendor`). They are maintained simply to make
|
|
||||||
sure that we have a backup in the unlikely event of a disaster.
|
|
||||||
|
|
||||||
```
|
|
||||||
go mod vendor
|
|
||||||
git add vendor
|
|
||||||
git commit -m'go mod vendor' vendor
|
|
||||||
```
|
|
||||||
|
|
||||||
TODO(Tom): build.go should verify that this was done, similar to
|
|
||||||
how it tests that gofmt was run.
|
|
||||||
|
|
||||||
|
|
||||||
## Step 2. Run the integration tests
|
## Step 2. Run the integration tests
|
||||||
|
|
||||||
@@ -47,10 +32,10 @@ how it tests that gofmt was run.
|
|||||||
Edit the "Version" variable in `pkg/version/version.go` and commit.
|
Edit the "Version" variable in `pkg/version/version.go` and commit.
|
||||||
|
|
||||||
```
|
```
|
||||||
export PREVVERSION=3.0.0 <<< Change to the previous version
|
export PREVVERSION=3.3.0 <<< Change to the previous version
|
||||||
export VERSION=3.1.0 <<< Change to the new release version
|
export VERSION=3.4.0 <<< Change to the new release version
|
||||||
git checkout master
|
git checkout master
|
||||||
vi main.go
|
vi pkg/version/version.go <<< Change "Version" to new release version
|
||||||
git commit -m'Release v'"$VERSION" main.go
|
git commit -m'Release v'"$VERSION" main.go
|
||||||
git tag v"$VERSION"
|
git tag v"$VERSION"
|
||||||
git push origin tag v"$VERSION"
|
git push origin tag v"$VERSION"
|
||||||
|
Reference in New Issue
Block a user