Steven Presti
8c14f1304f
build: drop package name when used with 'go clean' argument(s)
...
I dont see mention of this change in the 1.23 changelog, however it is mentioned
in the commit c22865fcfa
fixes: #1931
2024-09-10 15:40:32 -04:00
Jonathan Lebon
65f867418d
build: print out the auto-generated VERSION string
2021-12-03 17:11:35 -05:00
Andrew Jeddeloh
068764c2b0
build*: use --always with git describe
...
git describe --dirty can fail in some cases without --always. This can
cause travis to fail.
2019-05-30 10:23:43 -07:00
Andrew Jeddeloh
659f7debad
build: export GOFLAGS so they get used
...
Export GOFLAGS so they are actually used by the build process.
2019-05-24 11:42:30 -07:00
Stephen Lowrie
bb6182a393
*: bump import path
...
Bumps the import path to be `github.com/coreos/ignition/v2`, this is
required to be able to import the v2 of Ignition alongside v0 in other
repositories.
2019-04-09 12:40:08 -05:00
Stephen Lowrie
62b617c4f3
vendor: switch to go modules
...
With the release of golang 1.12 go modules have been improved in
preparation for being the new default in golang 1.13.
2019-03-06 12:15:33 -06:00
Andrew Jeddeloh
f6ffd19d21
build: clean before building
...
Go's caching (on by default with 1.11, enforced in 1.12) does not handle
cgo at all. Update build to always clean so it will always pick up
changes to cgo code.
2018-08-31 10:51:45 -07:00
Derek Gonyeo
3ea647a69f
build: produce position independent executable for ignition
...
When building the Ignition binary, produce a position independent
executable as per recommendations from the Fedora packaging guidelines.
2018-04-09 15:19:25 -07:00
Stephen Lowrie
c3ecfd48fb
Merge pull request #523 from ashcrow/build-version-fix
...
build and build_releases VERSION override
2018-03-20 09:29:39 -07:00
Steve Milner
3f806ff68d
build: Allow VERSION set and fallback to git
2018-03-15 13:01:40 -04:00
Steve Milner
ff6985977a
build: Override artifact output with BIN_PATH
2018-03-15 09:26:18 -04:00
Derek Gonyeo
7114cc3f53
validate: add CLI tool for validating Ignition configs
2018-01-04 14:17:08 -08:00
Andrew Jeddeloh
9c4257fbf6
tests: make running bb tests locally easier
...
Move building blackbox tests into its own script. Allow use of host
system paths for binaries whith HELPERS=HOST.
2018-01-02 15:38:57 -08:00
Andrew Jeddeloh
24d97702d3
build: do not go install when cross compiling
...
go install will fail when cross compiling, so detect that and just use
go build in that case.
2017-12-20 16:47:18 -08:00
Stephen Lowrie
62ebf33e1f
test: add option to compile tests via environment variable
...
Used for blackbox testing, if the ACTION variable is set to
'COMPILE' rather than running the tests they will be compiled into
`.test` files.
2017-09-05 13:13:00 -07:00
Alex Crawford
1a1438c3cd
build: don't hardcode path to bash
2017-02-22 17:34:53 -08:00
Geoff Levand
6644c52dfe
build: Enable multi-arch
...
Put binaries in an arch directory.
Signed-off-by: Geoff Levand <geoff@infradead.org >
2016-05-06 10:14:58 -07:00
Geoff Levand
fde3b85da5
build: Set CGO_ENABLED=1
...
Ignition needs cgo, so set it in the build script to avoid
problems when is is not set in the default go environment.
Signed-off-by: Geoff Levand <geoff@infradead.org >
2016-05-06 10:14:58 -07:00
Alex Crawford
a3fe35a40b
build: correct version number linker flags
2016-04-01 19:54:27 -07:00
Alex Crawford
966bad0918
version: separate version into it's own package
2016-04-01 14:46:41 -07:00
Alex Crawford
4a1e8353d5
*: rename src package to internal
...
This will prevent Ignition's implementation from being imported.
2016-03-31 17:42:22 -07:00
Alex Crawford
b07829764f
build: fix linker warning
...
link: warning: option -X main.version v0.1.6-6-g54b91e4-dirty may not
work in future releases; use -X main.version=v0.1.6-6-g54b91e4-dirty
2015-09-26 19:21:22 -07:00
Vito Caputo
4b06dec1e6
build: eliminate Makefile and derive version from git describe
...
This eliminates the need for version commits, we just add tags referring
to the merge of the NEWS commit.
The Makefile was just a nuisance and we weren't taking advantage of any
of the dependency/incremental build features.
2015-08-11 14:21:33 -07:00