Skip to content

Commit a72762e

Browse files
committed
feat(make): build the ory CLI from source and install it under the right name
1 parent 4cb1ec9 commit a72762e

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ lint: .bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
4646
.bin/golangci-lint-$(GOLANGCI_LINT_VERSION) run --timeout=10m ./...
4747

4848
.PHONY: install
49+
# Until https://github.com/golang/go/issues/44469 is resolved, we have to use `go build` instead of
50+
# `go install` to customize the executable name.
4951
install:
50-
GO111MODULE=on go install -tags sqlite .
52+
GO111MODULE=on go build -o "$(shell go env GOPATH)/bin/ory" -tags sqlite .
5153

5254
.PHONY: refresh
5355
refresh:

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ $ curl https://raw.githubusercontent.com/ory/meta/master/install.sh | sh -s ory
1212
$ ory help
1313
```
1414

15+
or to build it from source and install it in your $GOPATH:
16+
17+
```shell-session
18+
$ make install
19+
$ ory help
20+
```
21+
1522
## macOS
1623

1724
```shell-session

0 commit comments

Comments
 (0)