Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable installing with go get #110

Merged
merged 1 commit into from
Feb 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
.vscode
/dist
/config.*
/ct
vendor
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project_name: chart-testing
builds:
- main: app/main.go
- main: ct/main.go
binary: ct
env:
- CGO_ENABLED=0
Expand All @@ -13,9 +13,9 @@ builds:
- windows
ldflags:
- >-
-X github.com/helm/chart-testing/app/cmd.Version={{ .Tag }}
-X github.com/helm/chart-testing/app/cmd.GitCommit={{ .Commit }}
-X github.com/helm/chart-testing/app/cmd.BuildDate={{ .Date }}
-X github.com/helm/chart-testing/ct/cmd.Version={{ .Tag }}
-X github.com/helm/chart-testing/ct/cmd.GitCommit={{ .Commit }}
-X github.com/helm/chart-testing/ct/cmd.BuildDate={{ .Date }}
archive:
format_overrides:
- goos: windows
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ Unpack the `ct` binary, add it to your PATH, and you are good to go!
A Docker image is available at `quay.io/helmpack/chart-testing` with list of
available tags [here](https://quay.io/repository/helmpack/chart-testing?tab=tags).

### From Source

To install from head with [Go](https://golang.org) v1.10.1 or higher:

```cli
go get github.com/helm/chart-testing/ct
```

This will put `ct` in `$(go env GOPATH)/bin`. You may need to add that directory to your `$PATH` as shown [here](https://golang.org/doc/code.html#GOPATH) if you encounter the error `ct: command not found` after installation.

## Usage

See documentation for individual commands:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/main.go → ct/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package main

import (
"github.com/helm/chart-testing/app/cmd"
"github.com/helm/chart-testing/ct/cmd"
)

func main() {
Expand Down