Skip to content

Commit

Permalink
feat: go install will now install a kratix binary (#66)
Browse files Browse the repository at this point in the history
closes #65
  • Loading branch information
kirederik authored Dec 19, 2024
1 parent c9af9c2 commit 5a84127
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: # Run tests
go run github.com/onsi/ginkgo/v2/ginkgo -r

build: # Build the binary
CGO_ENABLED=0 go build -o bin/kratix main.go
CGO_ENABLED=0 go build -o bin/kratix ./cmd/kratix/main.go

build-aspects: build-operator-promise-aspect build-helm-promise-aspect # build all aspects

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The best tool you'll ever find to build your Promises!
To build the CLI, run:

```bash
make build
go install github.com/syntasso/kratix-cli/cmd/kratix@latest
```
The binary will be available at `./bin/kratix`.

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestIntegration(t *testing.T) {

var _ = BeforeSuite(func() {
var err error
binaryPath, err = gexec.Build("github.com/syntasso/kratix-cli")
binaryPath, err = gexec.Build("github.com/syntasso/kratix-cli/cmd/kratix")
Expect(err).NotTo(HaveOccurred())
})

Expand Down

0 comments on commit 5a84127

Please sign in to comment.