Skip to content

Commit

Permalink
Put CLI binary in root as well on make install and correctly specify …
Browse files Browse the repository at this point in the history
…that enterprise is required for SBOM export
  • Loading branch information
sweoggy committed Oct 2, 2024
1 parent 46c67fc commit d4cf869
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ test/resolve/testdata/gradle/gradle.debricked.lock
debricked-call-graph.*
internal/scan/testdata/npm/result.json
/internal/file/testdata/misc/yarn.lock
/internal/callgraph/finder/javafinder/testdata/guava/maven.debricked.lock
/internal/resolution/pm/maven/testdata/guava/maven.debricked.lock
2 changes: 1 addition & 1 deletion internal/cmd/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewReportCmd(
Use: "report",
Short: "Generate reports",
Long: `Generate reports.
This is a premium feature. Please visit https://debricked.com/pricing/ for more info.`,
Premium is required for license and vulnerability reports. Enterprise is required for SBOM reports. Please visit https://debricked.com/pricing/ for more info.`,
PreRun: func(cmd *cobra.Command, _ []string) {
_ = viper.BindPFlags(cmd.Flags())
},
Expand Down
2 changes: 1 addition & 1 deletion internal/report/sbom/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

var (
ErrHandleArgs = errors.New("failed to handle args")
ErrSubscription = errors.New("premium feature. Please visit https://debricked.com/pricing/ for more info")
ErrSubscription = errors.New("enterprise feature. Please visit https://debricked.com/pricing/ for more info")
)

type generateSbom struct {
Expand Down
1 change: 1 addition & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ version=$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)
ldFlags="-X main.version=${version}"
go install -ldflags "${ldFlags}" ./cmd/debricked
go generate -v -x ./cmd/debricked
go build -ldflags "${ldFlags}" ./cmd/debricked

0 comments on commit d4cf869

Please sign in to comment.