2024-02-28 12:38:26.794 [nix] copying path '/nix/store/aa4cw3vy0vvaxi7jy8i6qp89vv10w15v-jq-1.7.1-dev' from 'https://cache.nixos.org'...
2024-02-28 12:38:26.819 [nix] /nix/store/m2bqpb4ll2lysz13vmkkdgxsn1kxr8ii-iana-etc-20231227/nix-support:
2024-02-28 12:38:26.819 [nix] setup-hook: /nix/store/lgr9b20c3r66aj0r36rnv128b4xl2vya-nss-cacert-3.95/nix-support/setup-hook
2024-02-28 12:38:27.014 [nix] error:
2024-02-28 12:38:27.014 [nix] … while calling the 'derivationStrict' builtin
2024-02-28 12:38:27.014 [nix]
2024-02-28 12:38:27.014 [nix] at /builtin/derivation.nix:9:12: (source not available)
2024-02-28 12:38:27.014 [nix]
2024-02-28 12:38:27.014 [nix] … while evaluating derivation 'build-output.json'
2024-02-28 12:38:27.014 [nix] whose name attribute is located at /nix/store/gzf4zwcakda1nykn6h0avh45xhjhvsz4-source/pkgs/stdenv/generic/make-derivation.nix:353:7
2024-02-28 12:38:27.014 [nix]
2024-02-28 12:38:27.014 [nix] … while evaluating attribute 'text' of derivation 'build-output.json'
2024-02-28 12:38:27.014 [nix]
2024-02-28 12:38:27.014 [nix] at /nix/store/gzf4zwcakda1nykn6h0avh45xhjhvsz4-source/pkgs/build-support/trivial-builders/default.nix:162:16:
2024-02-28 12:38:27.014 [nix]
2024-02-28 12:38:27.014 [nix] 161| ({
2024-02-28 12:38:27.014 [nix] 162| inherit text executable checkPhase allowSubstitutes preferLocalBuild;
2024-02-28 12:38:27.014 [nix] | ^
2024-02-28 12:38:27.014 [nix] 163| passAsFile = [ "text" ]
2024-02-28 12:38:27.014 [nix]
2024-02-28 12:38:27.014 [nix] error: unexpected EOF reading a line
This is a collection of issues I encountered and improvement ideas that came to my mind while working on deploying Nixery backed by GCS into Google Cloud Run
Ideas
GOOGLE_APPLICATION_CREDENTIALSas a last-resort fallback/backwards compatnixery-imageargumentsnixery-launch-scriptfor use in own container image buildsuse binary cache as a storage backend? it doesn't because it uses different format[]or["latest"](possibly implemented byBackend) from tags list registry endpointskopeo inspectwithout--no-tagsthrowsFATA[0002] Error determining repository tags: fetching tags list: StatusCode: 404, ""mainnotmaster)config.Envlike in https://github.com/NixOS/nixpkgs/blob/937261e3e0f40832e05125159531bd06bd625585/pkgs/build-support/docker/default.nix#L1237-L1237Bugs / required refactors
nixeryin a container (my setup) always fails witherror: unexpected EOF reading a lineatbuild-output.json, see below for detailscontentsto proper invocation ofcopyToRoot, see nixpkgsfull `build-output.json` error on first start