You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing that would greatly help me is a feature to conditionally download binaries but always have a fallback to compile from source. That way I could distribute most parts of the DkML Windows installer as opam packages, with speedy installs for our Windows users (and whoever else wants to take advantage of this feature) and slower source installs for anybody else.
extra-source { ... } does most of what is needed, except it doesn't have filters.
Today I use those extra-source blocks in the dkml-base-compiler package to speed up the bootstrap of the ocaml compiler on the official DkML platforms. The problem is that all of those extra-source blocks are downloaded, regardless of whether the download is needed. And the problem would be worse if I expanded the idea to other packages, or if more binary-capable platforms are supported.
The proposal is to allow for filters like [ os = "win32" & arch = "x86_64" ] in:
FYI: The linux binary artifacts work on any Linux distro with GLIBC >= 2.28. Although it is not a high priority, it would be lovely to have opam fields linux-clib: glibc (or linux-clib: musl) and linux-clib-glibc: 2.32 so packages can filter on useful Linux attributes.
EDIT: I think I can make a conf-linux-clib package emit opam linux-clib and linux-clib-glibc variables.
One thing that would greatly help me is a feature to conditionally download binaries but always have a fallback to compile from source. That way I could distribute most parts of the DkML Windows installer as opam packages, with speedy installs for our Windows users (and whoever else wants to take advantage of this feature) and slower source installs for anybody else.
extra-source { ... }
does most of what is needed, except it doesn't have filters.Here is a real example today from
https://github.com/diskuv/dkml-compiler/blob/aff46e43c48919cf04601a6eacc4a504f0e700fc/dkml-base-compiler.opam#L203-L222:
Today I use those
extra-source
blocks in thedkml-base-compiler
package to speed up the bootstrap of the ocaml compiler on the official DkML platforms. The problem is that all of those extra-source blocks are downloaded, regardless of whether the download is needed. And the problem would be worse if I expanded the idea to other packages, or if more binary-capable platforms are supported.The proposal is to allow for filters like
[ os = "win32" & arch = "x86_64" ]
in:Thanks.
The text was updated successfully, but these errors were encountered: