Skip to content

use specific version instead of latest #19

@chris-rock

Description

@chris-rock

Describe the bug

Releases can fail when latest is not updated, as seen with release 8.22.0

cnspec 8.21.3 is already installed but outdated (so it will be upgraded).
==> Fetching dependencies for mondoohq/mondoo/cnspec: mondoohq/mondoo/cnquery
==> Fetching mondoohq/mondoo/cnquery
==> Downloading https://releases.mondoo.com/cnquery/8.22.0/cnquery_8.22.0_darwin_arm64.tar.gz
##################################################################################################################################################################################################### 100.0%
Error: cnspec: SHA256 mismatch
Expected: 0173db4652d6f0d3bae0f56237b06897d02bd9ffb76a25297e6d7adb4271406a
  Actual: faf5f15e1a200b2e8fb70fc951e599f61babf2e6df7d6cc7fda19463833fbfd6
    File: /Users/chris/Library/Caches/Homebrew/downloads/c34126baa1ecb6a92fba64400543d733385ad8e55a1cdc821620132ddd3a0d60--cnquery_8.22.0_darwin_arm64.tar.gz

To Reproduce

timing-issue during release

Expected behavior

We need to use the specific version number in https://github.com/mondoohq/homebrew-mondoo/blob/master/generator/main.go#L21-L41 and use install.mondoo.com

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions