Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion source/summit/build/queue.d
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ private:
auto mProject = projectManager.bySlug(project.slug);
auto mRepo = mProject.bySlug(repo.name);
auto entry = mRepo.db.byID(task.pkgID);
return JobMapper(entry, task, [profile.volatileIndexURI], profile.volatileIndexURI);

return JobMapper(entry, task,
profile.remotes ~ [profile.volatileIndexURI], profile.volatileIndexURI);
}

/**
Expand Down
7 changes: 7 additions & 0 deletions source/summit/fixtures.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module summit.fixtures;

import moss.service.context;
import std.path : buildPath;
import std.algorithm.sorting : sort;
import std.algorithm.iteration : map;
import std.array : array;
import summit.models;
import summit.projects;
import vibe.core.file : readFileUTF8;
Expand Down Expand Up @@ -113,6 +116,10 @@ static void loadFixtures(ServiceContext context, ProjectManager projectManager)
p.name = profile.name;
p.arch = profile.arch;
p.volatileIndexURI = profile.indexURI;
p.remotes = profile.remotes
.sort!((a, b) => a.priority < b.priority)
.map!(a => a.uri)
.array;
immutable err = project.addProfile(p);
enforceHTTP(err.isNull, HTTPStatus.internalServerError, err.message);
}
Expand Down
2 changes: 2 additions & 0 deletions source/summit/models/profile.d
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ public @Model struct Profile
* What project does this belong to?
*/
ProjectID projectID;

string[] remotes;
}
Loading