tvl-depot/tools/nixery/prepare-image
Vincent Ambo 2464ea7303 fix(nixery): allow references to packages starting with numbers
These packages are invalid in Nix, and worked around in nixpkgs with
underscores, but the underscores are invalid in the Docker registry
protocol.

We work around this by detecting this case and adding the underscore
to yield the correct package reference. There is no case where this
workaround can break something, as there can be no valid package
matching the regular expression.

This relates to https://github.com/tazjin/nixery/issues/158

Change-Id: I7990cdb534a8e86c2ceee2c589a2636af70a4a03
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8531
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: flokli <flokli@flokli.de>
2023-04-29 11:49:02 +00:00
..
default.nix chore(nixery): Housekeeping for depot compatibility 2022-04-20 15:31:16 +00:00
load-pkgs.nix chore(nixery): Housekeeping for depot compatibility 2022-04-20 15:31:16 +00:00
prepare-image.nix fix(nixery): allow references to packages starting with numbers 2023-04-29 11:49:02 +00:00