Skip to content

Commit 87eefc8

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

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ lint: .bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
4747

4848
.PHONY: install
4949
install:
50-
GO111MODULE=on go install -tags sqlite .
50+
# Until https://github.com/golang/go/issues/44469 is resolved, we have to do two steps to customize the executable name.
51+
GO111MODULE=on go build -o ory -tags sqlite .
52+
cp ./ory "$(shell go env GOPATH)/bin/ory"
5153

5254
.PHONY: refresh
5355
refresh:

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ $ 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+
```
20+
1521
## macOS
1622

1723
```shell-session

0 commit comments

Comments
 (0)