Skip to content

feat: Added a Makefile target for producing a binary - #2285

Open
sabre1041 wants to merge 1 commit into
getsops:mainfrom
sabre1041:build-target
Open

feat: Added a Makefile target for producing a binary#2285
sabre1041 wants to merge 1 commit into
getsops:mainfrom
sabre1041:build-target

Conversation

@sabre1041

Copy link
Copy Markdown
Contributor

Currently, there is no way to produce a sops binary without executing the testing suites. This enhancement enables producing a sops binary without running the testing suites

@sabre1041
sabre1041 requested a review from a team August 23, 2026 19:21
@felixfontein

Copy link
Copy Markdown
Contributor

Right now, you can simply run make install and then run ~/go/bin/sops. That's how I test things :)

@sabre1041

Copy link
Copy Markdown
Contributor Author

Right now, you can simply run make install and then run ~/go/bin/sops. That's how I test things :)

I updated the install target to first use the new build target and then copy the resulting binary to the go bin directory

@sabre1041
sabre1041 force-pushed the build-target branch 4 times, most recently from 733ea09 to f2ffab9 Compare August 24, 2026 02:29
Comment thread Makefile
BIN_DIR := $(PROJECT_DIR)/bin

GO := GOPROXY=https://proxy.golang.org go
GOPATH :=$(shell go env GOPATH)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't there be a space?

Suggested change
GOPATH :=$(shell go env GOPATH)
GOPATH := $(shell go env GOPATH)

Comment thread Makefile
Signed-off-by: Andrew Block <andy.block@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants