{ "goVersion": "1.25", "hasDrvName": true, "hasImports": true, "hasLocalDir": true, "hasLocalImports": true, "hasModKey": true, "hasReplMap": true, "hasSubdir": true, "hasThirdPartyImports": true, "localPkgCount": 1, "modulePath": "github.com/numtide/go2nix-torture", "pkgCount": 242, "testPkgCount": 0 } === Case 2: derivation-backed input warns then realises (IFD allowed) === 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. 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 348 ms (attempt 1/5) 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 645 ms (attempt 2/5) 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 1336 ms (attempt 3/5) 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 2279 ms (attempt 4/5) warning: unable to download 'https://cache.nixos.org/nix-cache-info': Could not resolve hostname (6) Could not resolve host: cache.nixos.org error: … while calling the 'resolveGoPackages' builtin at «string»:2:5: 1| 2| builtins.resolveGoPackages { | ^ 3| src = "${derivation { error: `sandbox-build-dir` must not contain the storeDir OK: warning surfaced for derivation-backed src === Case 3: derivation-backed input under IFD=false → IFDError (Nix gate) === 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. error: … while calling the 'resolveGoPackages' builtin at «string»:2:5: 1| 2| builtins.resolveGoPackages { | ^ 3| src = "${derivation { error: cannot build '/build/nix/store/ykk4djglcmi7g1zl6i8776avm80mzjbr-drv-src.drv^out' during evaluation because the option 'allow-import-from-derivation' is disabled OK: Nix's IFD gate still applies === Case 4: a go named by the expression is ignored, never run === warning: resolveGoPackages: the 'go' attribute is ignored; the plugin's built-in Go toolchain is used OK: go ignored with a warning === Case 5: subPackages entries are patterns, never go list flags === error: … while calling the 'resolveGoPackages' builtin at «string»:1:1: 1| builtins.resolveGoPackages { src = "/build/torture-project"; subPackages = [ "-export" "-toolexec" "/build/planted" "." ]; } | ^ error: resolveGoPackages: resolveGoPackages: package errors: - -export: malformed import path "-export": leading dash - -toolexec: malformed import path "-toolexec": leading dash - /build/planted: directory ../planted outside main module or its selected dependencies Hint: your GOMODCACHE may be stale. Run 'go mod download' to populate it. OK: leading-dash entry rejected as a pattern