nandi/frqpublic Fork 0
34832a88bc2a8977a6c22ec3b207a5f512fdf630
Commits
Clone
git clone https://git.rickub.com/nandi/frq.git
git clone ssh://git@rickub.com/nandi/frq.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Build the APK with buck2, from pins rather than from a second checkout a71ef8f · on 34832a88bc2a8977a6c22ec3b207a5f512fdf630 · nandi · 19d ago
dist.bzl · 32 lines · 1.3 KBPython Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# DotSlash, as a build artifact rather than something found on the machine.
#
# scripts/dotslash.dotslash is where the version and digest are written down,
# and it stays that way: dist/generated.bzl is derived from it by
# scripts/dotslash-to-buck, so there is one place to bump a version and no
# second copy of a digest to drift.
#
# Only DotSlash is fetched this way. jolt is not, and that is the point: what
# travels to a worker is the fetcher and the manifest, both small, and the
# worker resolves the manifest itself. See android/BUCK.
load("//dist:generated.bzl", "DIST")

def dist_archive(name, tool, platform):
    """One pinned archive, fetched by buck rather than by a shim.

    Unlike DotSlash, which resolves on the machine that runs a tool, this
    makes the archive's contents an input: their bytes are in the digest of
    every action that reads them, so a new release rebuilds what depends on
    it and an unchanged one rebuilds nothing.
    """
    entry = DIST[tool][platform]
    native.http_archive(
        name = name,
        urls = [entry["url"]],
        sha256 = entry["sha256"],
        strip_prefix = entry["strip_prefix"] or None,
        type = entry["type"],
        visibility = ["PUBLIC"],
    )

def dotslash_dist(name, platform):
    dist_archive(name, "dotslash", platform)