diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 39fe81f..4517412 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -53,6 +53,7 @@ jobs: test: name: Test strategy: + fail-fast: false matrix: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} diff --git a/cli/dependency_resolver.go b/cli/dependency_resolver.go index 5766084..0751f07 100644 --- a/cli/dependency_resolver.go +++ b/cli/dependency_resolver.go @@ -75,7 +75,11 @@ func (r *resolvingInstance) Step() error { smlVersionConstraint, _ := semver.NewConstraint(constraint) if existingSML, ok := r.OutputLock[id]; ok { if !smlVersionConstraint.Check(semver.MustParse(existingSML.Version)) { - return errors.New("failed resolving dependencies. requires different versions of " + id) + return errors.Errorf("mod %s version %s does not match constraint %s", + id, + existingSML.Version, + constraint, + ) } } diff --git a/cli/resolving_test.go b/cli/resolving_test.go index 39f6d28..c50fcde 100644 --- a/cli/resolving_test.go +++ b/cli/resolving_test.go @@ -41,7 +41,7 @@ func TestProfileResolution(t *testing.T) { }, }).Resolve(resolver, nil, math.MaxInt) - testza.AssertEqual(t, "failed resolving profile dependencies: mod RefinedRDLib version 1.0.6 does not match constraint ^1.0.7", err.Error()) + testza.AssertEqual(t, "failed resolving profile dependencies: failed resolving dependencies. requires different versions of RefinedRDLib", err.Error()) _, err = (&Profile{ Name: DefaultProfileName,