Skip to content
This repository was archived by the owner on Aug 30, 2019. It is now read-only.

Makefile: add 'binaries' command to help release pre-compiled binaries.#442

Merged
gbbr merged 3 commits into
masterfrom
gbbr/x-compile
Jun 22, 2018
Merged

Makefile: add 'binaries' command to help release pre-compiled binaries.#442
gbbr merged 3 commits into
masterfrom
gbbr/x-compile

Conversation

@gbbr

@gbbr gbbr commented Jun 22, 2018

Copy link
Copy Markdown
Contributor

Allows running:

make binaries V=6.2.1

Which would result in checking out and compiling the binaries for revision 6.2.1 into the ./bin folder. They are named trace-agent-{$GOOS}-{$GOARCH}-6.2.1

Comment thread Makefile Outdated
go install ./cmd/trace-agent

binaries:
test -n "$(V)" # $$V must be set to the release version, e.g. "make binaries V=1.2.3"

@LotharSee LotharSee Jun 22, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's expected to be the binary version, you should also set TRACE_AGENT_VERSION as that's the version going to be set in the binary itself.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks! I've added the go generate command before creating the binaries, based on V.

@gbbr
gbbr force-pushed the gbbr/x-compile branch 2 times, most recently from bdc72e8 to 2e99466 Compare June 22, 2018 10:06
@gbbr
gbbr force-pushed the gbbr/x-compile branch from 4c9bb0e to ae0364c Compare June 22, 2018 10:21
@gbbr
gbbr merged commit 81e3b13 into master Jun 22, 2018
@gbbr
gbbr deleted the gbbr/x-compile branch June 22, 2018 15:42
gbbr added a commit that referenced this pull request Jul 12, 2018
…s. (#442)

* Makefile: add 'binaries' command to help release pre-compiled binaries.

* Makefile: checkout and build binaries from V

* README: update binary name
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants