Skip to content

Commit

Permalink
count might be zero for alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway authored and Jarred-Sumner committed Nov 7, 2023
1 parent 8d3a0dd commit bb5d6ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions src/install/dependency.zig
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,9 @@ pub fn parseWithTag(
null,
logger.Loc.Empty,
allocator,
"{s} parsing dependency \"{s}\" with version \"{s}\"",
"{s} parsing version \"{s}\"",
.{
@errorName(err),
name.fmt(sliced.buf),
dependency,
},
) catch unreachable;
Expand Down
4 changes: 0 additions & 4 deletions src/install/semver.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2066,10 +2066,6 @@ pub const Query = struct {
}
}

if (count == 0) {
return error.InvalidDependencyVersion;
}

return list;
}
};
Expand Down

0 comments on commit bb5d6ff

Please sign in to comment.