Skip to content

Commit

Permalink
fix(anchore/syft): fix checksum config
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 5, 2022
1 parent ca71e58 commit 2b60ac2
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 18 deletions.
6 changes: 6 additions & 0 deletions pkgs/anchore/syft/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
packages:
- name: anchore/syft@v0.58.0
- name: anchore/syft
version: v0.37.10
- name: anchore/syft
version: v0.36.0
- name: anchore/syft
version: v0.35.1
- name: anchore/syft
version: v0.34.0
29 changes: 20 additions & 9 deletions pkgs/anchore/syft/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,16 @@ packages:
repo_owner: anchore
repo_name: syft
description: CLI tool and library for generating a Software Bill of Materials from container images and filesystems
format: tar.gz
supported_envs:
- darwin
- linux
- amd64
asset: syft_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
version_constraint: semver(">= 0.36.0")
format: tar.gz
overrides:
- goos: windows
format: zip
version_constraint: semver(">= 0.37.10")
version_overrides:
- version_constraint: "true"
overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
checksum:
type: github_release
asset: syft_{{trimV .Version}}_checksums.txt
Expand All @@ -28,3 +21,21 @@ packages:
pattern:
checksum: ^(\b[A-Fa-f0-9]{64}\b)
file: "^\\b[A-Fa-f0-9]{64}\\b\\s+(\\S+)$"
version_overrides:
- version_constraint: semver(">= 0.35.0")
# https://github.com/anchore/syft/issues/739
overrides:
- goos: windows
format: zip
checksum:
enabled: false
- goos: darwin
format: zip
checksum:
enabled: false
- version_constraint: "true"
overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
29 changes: 20 additions & 9 deletions registry.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2b60ac2

Please sign in to comment.