build: upgrade anchore dependencies to fix mapstructure compatibility #246
+60
−57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upgrades anchore dependencies to resolve a critical compatibility issue between different mapstructure package versions that was preventing the cmd package tests from running.
Root Cause:
anchore/fangs
(v0.0.0-20241014225144-4e1713cafd77) usedmitchellh/[email protected]
viper
(v1.20.1) usesgo-viper/mapstructure/[email protected]
DecoderConfigOption
caused build failuresSolution:
anchore/clio
to v0.0.0-20250926015255-f418e0b4892canchore/fangs
to v0.0.0-20250924221602-895877cb39ecKey Changes:
github.com/anchore/clio
upgradedgithub.com/anchore/fangs
upgraded (transitive)Related Issue(s)
Fixes cmd package test execution failures with error
cannot use func(dc *mapstructure.DecoderConfig) as viper.DecoderConfigOption
.Prerequisite to have tests running in #247.
Hence, it also fixes https://linear.app/ona-team/issue/CLC-1958/leeway-security-testing-suite
How to test
Verify Tests Pass
###Verify Binary Builds
Verify No Regression
Documentation
This is a dependency upgrade that fixes build/test issues without changing user-facing functionality.