Skip to content

flox containerize fails for custom packages #3971

@mkenigs

Description

@mkenigs

First reported in https://floxcommunitygroup.slack.com/archives/C06NYALM8P8/p1770309618155379

On macOS, run:

mkdir flox-containerize
cd flox-containerize
flox init
flox install flox/gcloud-with-auth
flox containerize

containerize fails with

✘ ERROR: container source command unsuccessful

stderr:
unpacking 'github:flox/flox/2d16dc129ac71abad3b41311c3f50540ddb9fc96' into the Git cache...
this derivation will be built:
  /nix/store/lxd94np20m6aqvz2xh8pzbdccrfpdwr0-flox-1.8.3-g2d16dc1.drv
these 16 paths will be fetched (12.49 MiB download, 63.64 MiB unpacked):
  /nix/store/m9gwilf9dwlj21vmyq472838rygsdwan-flox-1.8.3
  /nix/store/mmm991j3cvcv68y0lmzgfrzd1zm16v53-flox-activations-1.8.3
  /nix/store/jwzlgxm8jzyjx97ad1v66i4ih77clpqi-flox-buildenv-0.0.1
  /nix/store/cm3qx68wmg7kzm4n5kjqj5hyniiarncb-flox-interpreter
  /nix/store/dblhmxi1lz9f0szvn4p9547016mdavjd-flox-interpreter-build_executable_wrapper
  /nix/store/9kv55xpzff1rxf3xsam0l0zklz9kbwrh-flox-manpages
  /nix/store/d7k8dfydk0i3br23f7x3r8imssp3gr7d-flox-nix-plugins-1.8.3
  /nix/store/s915l980a9nx72r6kr6rxbrvrgvf9y9k-flox-perl-5.40.0
  /nix/store/zjf6nsci32scgz5cd7brfarlbss0yz46-flox-watchdog-1.8.3
  /nix/store/jg75awz4csfwpvz06gv1cyk6s5qfkkz2-libcap-ng-0.8.5
  /nix/store/j4qnwg2hfmlfbji6p0qllh3dk7kacj6c-nix-2.31.2+1
  /nix/store/m7sn7ly2hsahfcxxpkx64wmwnigswgs2-package-builder-1.0.0
  /nix/store/sa87bcn9z73qk5bj7b8g4hjxryhpkdhx-util-linux-minimal-2.41.2-bin
  /nix/store/flqgidrbpnd92wvv3hymwpm521d2r43j-util-linux-minimal-2.41.2-login
  /nix/store/w6yi5lw89cr30jvg91fvi8rqrisrkisp-util-linux-minimal-2.41.2-mount
  /nix/store/55nd4s1yxqy05gy7xn8h1n9dkhlgf8yq-util-linux-minimal-2.41.2-swap
copying path '/nix/store/9kv55xpzff1rxf3xsam0l0zklz9kbwrh-flox-manpages' from 'https://cache.flox.dev'...
copying path '/nix/store/d7k8dfydk0i3br23f7x3r8imssp3gr7d-flox-nix-plugins-1.8.3' from 'https://cache.flox.dev'...
copying path '/nix/store/j4qnwg2hfmlfbji6p0qllh3dk7kacj6c-nix-2.31.2+1' from 'https://cache.flox.dev'...
copying path '/nix/store/mmm991j3cvcv68y0lmzgfrzd1zm16v53-flox-activations-1.8.3' from 'https://cache.flox.dev'...
copying path '/nix/store/s915l980a9nx72r6kr6rxbrvrgvf9y9k-flox-perl-5.40.0' from 'https://cache.flox.dev'...
copying path '/nix/store/jg75awz4csfwpvz06gv1cyk6s5qfkkz2-libcap-ng-0.8.5' from 'https://cache.flox.dev'...
copying path '/nix/store/w6yi5lw89cr30jvg91fvi8rqrisrkisp-util-linux-minimal-2.41.2-mount' from 'https://cache.flox.dev'...
copying path '/nix/store/55nd4s1yxqy05gy7xn8h1n9dkhlgf8yq-util-linux-minimal-2.41.2-swap' from 'https://cache.flox.dev'...
copying path '/nix/store/flqgidrbpnd92wvv3hymwpm521d2r43j-util-linux-minimal-2.41.2-login' from 'https://cache.flox.dev'...
copying path '/nix/store/m7sn7ly2hsahfcxxpkx64wmwnigswgs2-package-builder-1.0.0' from 'https://cache.flox.dev'...
copying path '/nix/store/sa87bcn9z73qk5bj7b8g4hjxryhpkdhx-util-linux-minimal-2.41.2-bin' from 'https://cache.flox.dev'...
copying path '/nix/store/zjf6nsci32scgz5cd7brfarlbss0yz46-flox-watchdog-1.8.3' from 'https://cache.flox.dev'...
copying path '/nix/store/cm3qx68wmg7kzm4n5kjqj5hyniiarncb-flox-interpreter' from 'https://cache.flox.dev'...
copying path '/nix/store/dblhmxi1lz9f0szvn4p9547016mdavjd-flox-interpreter-build_executable_wrapper' from 'https://cache.flox.dev'...
copying path '/nix/store/jwzlgxm8jzyjx97ad1v66i4ih77clpqi-flox-buildenv-0.0.1' from 'https://cache.flox.dev'...
copying path '/nix/store/m9gwilf9dwlj21vmyq472838rygsdwan-flox-1.8.3' from 'https://cache.flox.dev'...
building '/nix/store/lxd94np20m6aqvz2xh8pzbdccrfpdwr0-flox-1.8.3-g2d16dc1.drv'...
✘ ERROR: Failed to build environment:

Failed to construct environment: error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'environment'
         whose name attribute is located at /nix/store/jwzlgxm8jzyjx97ad1v66i4ih77clpqi-flox-buildenv-0.0.1/lib/buildenv.nix:279:11

       … while evaluating attribute 'exportReferencesGraph' of derivation 'environment'
         at /nix/store/jwzlgxm8jzyjx97ad1v66i4ih77clpqi-flox-buildenv-0.0.1/lib/buildenv.nix:352:3:
          351|   # the contents of requisites.txt for each output.
          352|   exportReferencesGraph.graph = inputSrcs ++ [
             |   ^
          353|     interpreter_out

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: path '/nix/store/wjz6ink2dzv5nnajlxinzkkx5w68a46i-gcloud-with-auth-537.0.0' does not exist and cannot be created

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions