these 3 derivations will be built: /nix/store/k2809vskd4g871n09jm672rjldbahkd2-go2nix-nix-plugin-core-0.1.0.drv /nix/store/8szhgnx7ixw350fk5zs2j4hys012awax-go2nix-nix-plugin-0.1.0.drv /nix/store/v0c8rhswb60w1ywzy4pi272cjrx964w6-go2nix-nix-plugin-eval-test.drv building '/nix/store/v0c8rhswb60w1ywzy4pi272cjrx964w6-go2nix-nix-plugin-eval-test.drv' go2nix-nix-plugin-eval-test> { go2nix-nix-plugin-eval-test> "goVersion": "1.25", go2nix-nix-plugin-eval-test> "hasDrvName": true, go2nix-nix-plugin-eval-test> "hasImports": true, go2nix-nix-plugin-eval-test> "hasLocalDir": true, go2nix-nix-plugin-eval-test> "hasLocalImports": true, go2nix-nix-plugin-eval-test> "hasModKey": true, go2nix-nix-plugin-eval-test> "hasReplMap": true, go2nix-nix-plugin-eval-test> "hasSubdir": true, go2nix-nix-plugin-eval-test> "hasThirdPartyImports": true, go2nix-nix-plugin-eval-test> "localPkgCount": 1, go2nix-nix-plugin-eval-test> "modulePath": "github.com/numtide/go2nix-torture", go2nix-nix-plugin-eval-test> "pkgCount": 242, go2nix-nix-plugin-eval-test> "testPkgCount": 0 go2nix-nix-plugin-eval-test> } go2nix-nix-plugin-eval-test> === Case 2: derivation-backed input warns then realises (IFD allowed) === go2nix-nix-plugin-eval-test> warning: resolveGoPackages: realising derivation '/build/nix/store/ykk4djglcmi7g1zl6i8776avm80mzjbr-drv-src.drv^out' at eval time (IFD). For IFD-free evaluation, use builtins.fetchTarball/fetchGit for 'src' instead of pkgs.fetchFromGitHub. See go2nix docs: builder-api.md#src. go2nix-nix-plugin-eval-test> warning: unable to download 'https://cache.nixos.org/nix-cache-info': Could not resolve hostname (6) Could not resolve host: cache.nixos.org; retrying in 339 ms (attempt 1/5) go2nix-nix-plugin-eval-test> warning: unable to download 'https://cache.nixos.org/nix-cache-info': Could not resolve hostname (6) Could not resolve host: cache.nixos.org; retrying in 594 ms (attempt 2/5) go2nix-nix-plugin-eval-test> warning: unable to download 'https://cache.nixos.org/nix-cache-info': Could not resolve hostname (6) Could not resolve host: cache.nixos.org; retrying in 1344 ms (attempt 3/5) go2nix-nix-plugin-eval-test> warning: unable to download 'https://cache.nixos.org/nix-cache-info': Could not resolve hostname (6) Could not resolve host: cache.nixos.org; retrying in 2085 ms (attempt 4/5) go2nix-nix-plugin-eval-test> warning: unable to download 'https://cache.nixos.org/nix-cache-info': Could not resolve hostname (6) Could not resolve host: cache.nixos.org go2nix-nix-plugin-eval-test> error: go2nix-nix-plugin-eval-test> … while calling the 'resolveGoPackages' builtin go2nix-nix-plugin-eval-test> at «string»:2:5: go2nix-nix-plugin-eval-test> 1| go2nix-nix-plugin-eval-test> 2| builtins.resolveGoPackages { go2nix-nix-plugin-eval-test> | ^ go2nix-nix-plugin-eval-test> 3| src = "${derivation { go2nix-nix-plugin-eval-test> go2nix-nix-plugin-eval-test> error: `sandbox-build-dir` must not contain the storeDir go2nix-nix-plugin-eval-test> OK: warning surfaced for derivation-backed src go2nix-nix-plugin-eval-test> === Case 3: derivation-backed input under IFD=false → IFDError (Nix gate) === go2nix-nix-plugin-eval-test> warning: resolveGoPackages: realising derivation '/build/nix/store/ykk4djglcmi7g1zl6i8776avm80mzjbr-drv-src.drv^out' at eval time (IFD). For IFD-free evaluation, use builtins.fetchTarball/fetchGit for 'src' instead of pkgs.fetchFromGitHub. See go2nix docs: builder-api.md#src. go2nix-nix-plugin-eval-test> error: go2nix-nix-plugin-eval-test> … while calling the 'resolveGoPackages' builtin go2nix-nix-plugin-eval-test> at «string»:2:5: go2nix-nix-plugin-eval-test> 1| go2nix-nix-plugin-eval-test> 2| builtins.resolveGoPackages { go2nix-nix-plugin-eval-test> | ^ go2nix-nix-plugin-eval-test> 3| src = "${derivation { go2nix-nix-plugin-eval-test> go2nix-nix-plugin-eval-test> error: cannot build '/build/nix/store/ykk4djglcmi7g1zl6i8776avm80mzjbr-drv-src.drv^out' during evaluation because the option 'allow-import-from-derivation' is disabled go2nix-nix-plugin-eval-test> OK: Nix's IFD gate still applies go2nix-nix-plugin-eval-test> === Case 4: a go named by the expression is ignored, never run === go2nix-nix-plugin-eval-test> warning: resolveGoPackages: the 'go' attribute is ignored; the plugin's built-in Go toolchain is used go2nix-nix-plugin-eval-test> OK: go ignored with a warning go2nix-nix-plugin-eval-test> === Case 5: subPackages entries are patterns, never go list flags === go2nix-nix-plugin-eval-test> error: go2nix-nix-plugin-eval-test> … while calling the 'resolveGoPackages' builtin go2nix-nix-plugin-eval-test> at «string»:1:1: go2nix-nix-plugin-eval-test> 1| builtins.resolveGoPackages { src = "/build/torture-project"; subPackages = [ "-export" "-toolexec" "/build/planted" "." ]; } go2nix-nix-plugin-eval-test> | ^ go2nix-nix-plugin-eval-test> go2nix-nix-plugin-eval-test> error: resolveGoPackages: resolveGoPackages: package errors: go2nix-nix-plugin-eval-test> - -export: malformed import path "-export": leading dash go2nix-nix-plugin-eval-test> - -toolexec: malformed import path "-toolexec": leading dash go2nix-nix-plugin-eval-test> - /build/planted: directory ../planted outside main module or its selected dependencies go2nix-nix-plugin-eval-test> Hint: your GOMODCACHE may be stale. Run 'go mod download' to populate it. go2nix-nix-plugin-eval-test> OK: leading-dash entry rejected as a pattern upload niks3: ok