Merge pull request #1334 from cli/make-ldflags
Fix version and OAuth client information being injected via `make`
This commit is contained in:
commit
659a474a13
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
|
@ -20,10 +20,10 @@ ifndef CGO_LDFLAGS
|
|||
endif
|
||||
|
||||
GO_LDFLAGS := -X github.com/cli/cli/command.Version=$(GH_VERSION)
|
||||
GO_LDFLAGS := -X github.com/cli/cli/command.BuildDate=$(BUILD_DATE)
|
||||
GO_LDFLAGS += -X github.com/cli/cli/command.BuildDate=$(BUILD_DATE)
|
||||
ifdef GH_OAUTH_CLIENT_SECRET
|
||||
GO_LDFLAGS := -X github.com/cli/cli/internal/config.oauthClientID=$(GH_OAUTH_CLIENT_ID)
|
||||
GO_LDFLAGS := -X github.com/cli/cli/internal/config.oauthClientSecret=$(GH_OAUTH_CLIENT_SECRET)
|
||||
GO_LDFLAGS += -X github.com/cli/cli/internal/config.oauthClientID=$(GH_OAUTH_CLIENT_ID)
|
||||
GO_LDFLAGS += -X github.com/cli/cli/internal/config.oauthClientSecret=$(GH_OAUTH_CLIENT_SECRET)
|
||||
endif
|
||||
|
||||
bin/gh: $(BUILD_FILES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue