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

refactor command package to remove globals and add dependency injection #965

Merged
merged 17 commits into from Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .bouncer.yaml
Expand Up @@ -5,6 +5,7 @@ permit:
- MPL.*
- ISC
ignore-packages:
- .
spiffcs marked this conversation as resolved.
Show resolved Hide resolved
# packageurl-go is released under the MIT license located in the root of the repo at /mit.LICENSE
- github.com/anchore/packageurl-go

Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Expand Up @@ -12,6 +12,7 @@ before:

builds:
- id: linux-build
dir: ./cmd/syft
binary: syft
goos:
- linux
Expand All @@ -32,6 +33,7 @@ builds:
-X github.com/anchore/syft/internal/version.gitDescription={{.Summary}}

- id: darwin-build
dir: ./cmd/syft
binary: syft
goos:
- darwin
Expand All @@ -49,6 +51,7 @@ builds:
- ./.github/scripts/apple-signing/sign.sh "{{ .Path }}" "{{ .IsSnapshot }}" "{{ .Target }}"

- id: windows-build
dir: ./cmd/syft
binary: syft
goos:
- windows
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -147,7 +147,7 @@ lint-fix: ## Auto-format all source code + run golangci lint fixers

.PHONY: check-licenses
check-licenses: ## Ensure transitive dependencies are compliant with the current license policy
$(TEMPDIR)/bouncer check
$(TEMPDIR)/bouncer check ./cmd/syft
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wagoodman if I provide the path to the main package does the bouncer check things at the top level like internal or syft?


check-go-mod-tidy:
@ .github/scripts/go-mod-tidy-check.sh && echo "go.mod and go.sum are tidy!"
Expand Down
322 changes: 0 additions & 322 deletions cmd/attest.go

This file was deleted.

31 changes: 0 additions & 31 deletions cmd/check_for_application_update.go

This file was deleted.