-
Notifications
You must be signed in to change notification settings - Fork 2k
[teleport-update] Add teleport-update to build and archive #48839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1380342
Add teleport-update to build and archive
vapopov c7d8791
Add teleport-update to install scripts
vapopov 2058343
Add build flags without buildmode pie
vapopov 6ae61a6
Add helper message for install.sh script
vapopov b9e502e
Exclude teleport-update from darwin platform
vapopov 5814468
Add teleport-update to rpm and deb packages
vapopov cc1b29b
Remove teleport-update from deb, rpm packages
vapopov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -48,9 +48,12 @@ GO_LDFLAGS ?= -w -s $(KUBECTL_SETVERSION) | |||||||
| ifeq ("$(TELEPORT_DEBUG)","true") | ||||||||
| BUILDFLAGS ?= $(ADDFLAGS) -gcflags=all="-N -l" | ||||||||
| BUILDFLAGS_TBOT ?= $(ADDFLAGS) -gcflags=all="-N -l" | ||||||||
| BUILDFLAGS_TELEPORT_UPDATE ?= $(ADDFLAGS) -gcflags=all="-N -l" | ||||||||
| else | ||||||||
| BUILDFLAGS ?= $(ADDFLAGS) -ldflags '$(GO_LDFLAGS)' -trimpath -buildmode=pie | ||||||||
| BUILDFLAGS_TBOT ?= $(ADDFLAGS) -ldflags '$(GO_LDFLAGS)' -trimpath | ||||||||
| # teleport-update builds with disabled cgo, buildmode=pie is not required. | ||||||||
| BUILDFLAGS_TELEPORT_UPDATE ?= $(ADDFLAGS) -ldflags '$(GO_LDFLAGS)' -trimpath | ||||||||
| endif | ||||||||
|
|
||||||||
| GO_ENV_OS := $(shell go env GOOS) | ||||||||
|
|
@@ -240,7 +243,8 @@ endif | |||||||
|
|
||||||||
| # On Windows only build tsh. On all other platforms build teleport, tctl, | ||||||||
| # and tsh. | ||||||||
| BINS_default = teleport tctl tsh tbot fdpass-teleport | ||||||||
| BINS_default = teleport tctl tsh tbot fdpass-teleport teleport-update | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is the actual target for this?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lines 398 to 400 in c7d8791
|
||||||||
| BINS_darwin = teleport tctl tsh tbot fdpass-teleport | ||||||||
| BINS_windows = tsh tctl | ||||||||
| BINS = $(or $(BINS_$(OS)),$(BINS_default)) | ||||||||
| BINARIES = $(addprefix $(BUILDDIR)/,$(BINS)) | ||||||||
|
|
@@ -312,6 +316,8 @@ endif | |||||||
| CGOFLAG = CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ | ||||||||
| BUILDFLAGS = $(ADDFLAGS) -ldflags '-w -s $(KUBECTL_SETVERSION)' -trimpath -buildmode=pie | ||||||||
| BUILDFLAGS_TBOT = $(ADDFLAGS) -ldflags '-w -s $(KUBECTL_SETVERSION)' -trimpath | ||||||||
| # teleport-update builds with disabled cgo, buildmode=pie is not required. | ||||||||
| BUILDFLAGS_TELEPORT_UPDATE = $(ADDFLAGS) -ldflags '-w -s $(KUBECTL_SETVERSION)' -trimpath | ||||||||
| endif | ||||||||
|
|
||||||||
| ifeq ("$(OS)","darwin") | ||||||||
|
|
@@ -397,7 +403,7 @@ $(BUILDDIR)/tbot: | |||||||
|
|
||||||||
| .PHONY: $(BUILDDIR)/teleport-update | ||||||||
| $(BUILDDIR)/teleport-update: | ||||||||
| GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(BUILDDIR)/teleport-update $(BUILDFLAGS) ./tool/teleport-update | ||||||||
| GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(BUILDDIR)/teleport-update $(BUILDFLAGS_TELEPORT_UPDATE) ./tool/teleport-update | ||||||||
|
|
||||||||
| TELEPORT_ARGS ?= start | ||||||||
| .PHONY: teleport-hot-reload | ||||||||
|
|
||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.