Skip to content

Commit 606f49c

Browse files
vmagrometa-codesync[bot]
authored andcommitted
[antlir2][debian] extend download.bzl to transparently support Manifold
Summary: We want to snapshot `https://` archives into Manifold. We can use a url scheme `mf://` to make this relatively transparent to most of the code that is otherwise used to manipulating `http(s)://` urls. Test Plan: testhard Reviewed By: justintrudell Differential Revision: D93956590 fbshipit-source-id: 16cbb717f9867657fa7fe95124e8d7957ae54e6d
1 parent 15bb965 commit 606f49c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

antlir/antlir2/package_managers/snapshot/download.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.
55

6+
# @oss-disable[end= ]: load("//antlir/antlir2/package_managers/snapshot/facebook:manifold.bzl", "maybe_resolve_manifold_url")
7+
68
def download(
79
*,
810
actions: AnalysisActions,
@@ -12,6 +14,8 @@ def download(
1214
out: OutputArtifact | None = None,
1315
checksums: dict[str, str] = {},
1416
allow_nondeterministic_downloads: bool = False) -> Artifact:
17+
# @oss-disable[end= ]: url = maybe_resolve_manifold_url(url)
18+
1519
if not allow_nondeterministic_downloads and not checksums:
1620
fail("when allow_nondeterministic_downloads=False, at least one checksum must be provided")
1721

0 commit comments

Comments
 (0)