{% extends "base.html" %} {# server/templates/review/mirror.html — package mirror of a state: what may be built, wait times, approvals, inbox (E58) #} {% load static forge %} {% block title %}Mirror · {% if project.name %}{{ project.name }}{% else %}Project{% endif %} · Forge{% endblock %} {% block content %}

← Project

{% if project.name %}{{ project.name }}{% else %}Project{% endif %} {{ project_id|short_id }}

{% include "review/_tabs.html" %} {% if not snapshots %}

No saved state in storage yet.

{% else %}
Load and verify on the Mac: forge mirror sync
{% if error %}
{{ error }}
{% endif %}
{% if status.mirror == "only" %}

{{ ready_count }} of {{ total }} ready Built only from the mirror, in the runner without a network. New versions wait {{ status.quarantine_days }} days.

{% else %}

Mirror not required forge.toml does not contain [packages] mirror = "only" — the build still fetches packages itself. {{ ready_count }} of {{ total }} would be ready.

{% endif %} {% for note in status.notes %}

Note: {{ note }}

{% endfor %} {% if pending %}

New names need approval on a device — check the spelling, then forge mirror approve --pending: {% for name in pending %}{{ name }}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %}
{% for name, items in groups %}

{{ name }} {{ items|length }}

{% for item in items %} {% endfor %}
PackageStatusPublishedChecked (OSV)Files
{{ item.label }} {{ item.detail }} {% for vuln in item.vulns %}
{{ vuln.id }} ({{ vuln.severity }})
{% endfor %}
{% for file in item.files %}{% if forloop.first %}{{ file.published|default:"—" }}{% endif %}{% empty %}—{% endfor %} {{ item.audited|default:"—" }} {% for file in item.files %}
{{ file.file }}
{% empty %}—{% endfor %}
{% empty %}

This state names no packages ([packages] in forge.toml).

{% endfor %} {% endif %}

Upload a standard library

For example Bootstrap as a ZIP from the official page. The file goes into the inbox; a device admits it into the mirror first (forge mirror accept) — compare the SHA-256 with the source before. Afterwards forge mirror use <Name>@<Version> <Folder> unpacks it into the project and records it in forge.toml.

{% csrf_token %}

Inbox {{ inbox|length }}

{% for item in inbox %}
{{ item.name }}@{{ item.version }} · {{ item.file }} · {{ item.size }} bytes · {{ item.uploaded }}
sha256 {{ item.sha256 }}
forge mirror accept {{ item.sha256 }}
then: forge mirror use {{ item.name }}@{{ item.version }} static/vendor/{{ item.name }}
{% empty %}

Empty.

{% endfor %}
{% endblock %}