Skip to content

Commit

Permalink
Merge pull request #140 from WillAbides/panicfix
Browse files Browse the repository at this point in the history
fix panic adding dependencies to a config with no systems
  • Loading branch information
WillAbides authored May 9, 2023
2 parents 07ccf8e + 45ee6bd commit 721323a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/builddep/builddep.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ func addDependency(
urls []string,
selector selectCandidateFunc,
) error {
groups := parseDownloads(urls, name, version, cfg.Systems)
systems := cfg.Systems
if systems == nil {
systems = distSystems()
}
groups := parseDownloads(urls, name, version, systems)
var regrouped []*depGroup
for _, g := range groups {
gg, err := g.regroupByArchivePath(ctx, name, version, selector)
Expand Down

0 comments on commit 721323a

Please sign in to comment.