Merge pull request #5036 from hashicorp/b-fix-release-build

client: add proper build flag to allocrunner testing.go
This commit is contained in:
Nick Ethier 2018-12-20 13:32:28 -05:00 committed by GitHub
commit f4caf87237
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -137,10 +137,12 @@ https://github.com/google/protobuf for more information.
**Note:** Building the Nomad UI from source requires Node, Yarn, and Ember CLI. These tools are already in the Vagrant VM. Read the [UI README](https://github.com/hashicorp/nomad/blob/master/ui/README.md) for more info.
To cross-compile Nomad, run `make release`. This will compile Nomad for multiple
To cross-compile Nomad, run `make prerelease` and `make release`.
This will generate all the static assets, compile Nomad for multiple
platforms and place the resulting binaries into the `./pkg` directory:
```sh
$ make prerelease
$ make release
...
$ ls ./pkg

View file

@ -1,3 +1,5 @@
// +build !release
package allocrunner
import (