-
-
Notifications
You must be signed in to change notification settings - Fork 12
chore: stabilize Makefile, removed outdated tooling and upgrade versions #90
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ go.work | |
|
|
||
| .vscode/ | ||
| config.toml | ||
| CLAUDE.md | ||
|
|
||
| # build | ||
| pb | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,49 @@ | ||
| version: "2" | ||
|
|
||
| linters: | ||
| disable-all: true | ||
| default: none | ||
| enable: | ||
| - typecheck | ||
| - goimports | ||
| - misspell | ||
| - govet | ||
| - revive | ||
| - ineffassign | ||
| - gomodguard | ||
| - gofmt | ||
| - unused | ||
|
|
||
| linters-settings: | ||
| golint: | ||
| min-confidence: 0 | ||
|
|
||
| misspell: | ||
| locale: US | ||
|
|
||
| issues: | ||
| exclude-use-default: false | ||
| exclude: | ||
| - instead of using struct literal | ||
| - should have a package comment | ||
| - should have comment or be unexported | ||
| - time-naming | ||
| - error strings should not be capitalized or end with punctuation or a newline | ||
| - staticcheck | ||
| settings: | ||
| staticcheck: | ||
| checks: | ||
| - "all" | ||
| - "-ST1000" | ||
| - "-ST1003" | ||
| - "-ST1005" | ||
| - "-ST1016" | ||
| - "-ST1020" | ||
| - "-ST1021" | ||
| - "-ST1022" | ||
| - "-ST1023" | ||
| misspell: | ||
| locale: US | ||
| exclusions: | ||
| presets: [] | ||
| rules: | ||
| - text: "instead of using struct literal" | ||
| linters: | ||
| - revive | ||
| - text: "should have a package comment" | ||
| linters: | ||
| - revive | ||
| - text: "should have comment or be unexported" | ||
| linters: | ||
| - revive | ||
| - text: "time-naming" | ||
| linters: | ||
| - revive | ||
|
pratik50 marked this conversation as resolved.
|
||
| - text: "error strings should not be capitalized or end with punctuation or a newline" | ||
| linters: | ||
| - revive | ||
|
|
||
| formatters: | ||
| enable: | ||
| - gofmt | ||
| - goimports | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,12 +1,14 @@ | ||||||||||
| PWD := $(shell pwd) | ||||||||||
| GOPATH := $(shell go env GOPATH) | ||||||||||
| VERSION ?= $(shell git describe --tags) | ||||||||||
| # This is just for development purposes. The version is determined at build time using git tags. | ||||||||||
| VERSION ?= $(shell git describe --tags 2>/dev/null || echo "dev") | ||||||||||
| TAG ?= "parseablehq/pb:$(VERSION)" | ||||||||||
| LDFLAGS := $(shell go run buildscripts/gen-ldflags.go $(VERSION)) | ||||||||||
|
|
||||||||||
| GOARCH := $(shell go env GOARCH) | ||||||||||
| GOOS := $(shell go env GOOS) | ||||||||||
| GO111MODULE=on | ||||||||||
|
|
||||||||||
| GOLANGCI_LINT_VERSION := v2.11.4 | ||||||||||
|
|
||||||||||
| all: build | ||||||||||
|
|
||||||||||
|
|
@@ -15,11 +17,9 @@ checks: | |||||||||
| @(env bash $(PWD)/buildscripts/checkdeps.sh) | ||||||||||
|
|
||||||||||
| getdeps: | ||||||||||
| @GO111MODULE=on | ||||||||||
| @mkdir -p ${GOPATH}/bin | ||||||||||
| @echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin | ||||||||||
| @echo "Installing stringer" && go install -v golang.org/x/tools/cmd/stringer@latest | ||||||||||
| @echo "Installing staticheck" && go install honnef.co/go/tools/cmd/staticcheck@latest | ||||||||||
| @echo "Installing golangci-lint $(GOLANGCI_LINT_VERSION)" | ||||||||||
| @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin $(GOLANGCI_LINT_VERSION) | ||||||||||
|
||||||||||
| @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin $(GOLANGCI_LINT_VERSION) | |
| @tmpfile=$$(mktemp); trap 'rm -f "$$tmpfile"' EXIT; \ | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_LINT_VERSION)/install.sh -o "$$tmpfile" && \ | |
| sh "$$tmpfile" -b $(GOPATH)/bin $(GOLANGCI_LINT_VERSION) |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -272,13 +272,14 @@ func promptNamespaceAndCredentials() (*ParseableInfo, error) { | |||||||||
| // applyParseableSecret creates and applies the Kubernetes secret | ||||||||||
| func applyParseableSecret(ps *ParseableInfo, store ObjectStore, objectStoreConfig ObjectStoreConfig) error { | ||||||||||
| var secretManifest string | ||||||||||
| if store == LocalStore { | ||||||||||
| switch store { | ||||||||||
| case LocalStore: | ||||||||||
| secretManifest = getParseableSecretLocal(ps) | ||||||||||
| } else if store == S3Store { | ||||||||||
| case S3Store: | ||||||||||
| secretManifest = getParseableSecretS3(ps, objectStoreConfig) | ||||||||||
| } else if store == BlobStore { | ||||||||||
| case BlobStore: | ||||||||||
| secretManifest = getParseableSecretBlob(ps, objectStoreConfig) | ||||||||||
| } else if store == GcsStore { | ||||||||||
| case GcsStore: | ||||||||||
| secretManifest = getParseableSecretGcs(ps, objectStoreConfig) | ||||||||||
|
||||||||||
| secretManifest = getParseableSecretGcs(ps, objectStoreConfig) | |
| secretManifest = getParseableSecretGcs(ps, objectStoreConfig) | |
| default: | |
| return fmt.Errorf("unsupported object store: %v", store) |
Uh oh!
There was an error while loading. Please reload this page.