Skip to content

Commit 83353ba

Browse files
committed
cmd internal
1 parent d82bdb9 commit 83353ba

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sboms:
1616
builds:
1717
- binary: vulctl
1818
mod_timestamp: '{{ .CommitTimestamp }}'
19-
dir: ./cmd/vulctl
19+
dir: ./cmd
2020
env:
2121
- CGO_ENABLED=0
2222
flags:

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.3.2
1+
v0.3.3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ build: tidy ## Builds CLI binary
5858
-w -s -X main.commit=$(COMMIT) \
5959
-w -s -X main.date=$(CURRENT_DATE) \
6060
-extldflags '-static'" \
61-
-a -mod vendor -o bin/vulctl cmd/vulctl/main.go
61+
-a -mod vendor -o bin/vulctl cmd/main.go
6262

6363
.PHONY: setup
6464
setup: ## Creates the GCP resources
File renamed without changes.
File renamed without changes.

internal/processor/input.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ func (o *Options) validate() error {
7373
if o.File == "" {
7474
return ErrMissingPath
7575
}
76+
7677
if o.Format == nil || *o.Format == "" {
7778
c, err := parser.GetContainer(o.File)
7879
if err != nil {
7980
return errors.Wrap(err, "error parsing file while discovering format")
8081
}
8182
f := discoverFormat(c)
8283
o.FormatType = f
83-
8484
} else {
8585
f, err := ParseFormat(*o.Format)
8686
if err != nil {

internal/processor/import_test.go renamed to internal/processor/process_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/stretchr/testify/assert"
77
)
88

9-
func TestInvalidImport(t *testing.T) {
9+
func TestInvalidProcess(t *testing.T) {
1010
err := Process(nil)
1111
assert.Error(t, err)
1212
err = Process(&Options{})

0 commit comments

Comments
 (0)