Bogdanp / rackcheck

A property-based testing library for Racket.
28 stars 7 forks source link

Raco complains about missing `rackcheck/main.rkt` #12

Closed Warbo closed 4 months ago

Warbo commented 10 months ago

I think this is a consequence of the re-organisation from https://github.com/Bogdanp/rackcheck/issues/8

It looks like the examples/ files are using (require rackcheck), and that's causing Racket to look for a non-existent rackcheck/main.rkt file as per the Racket docs:

when an id has no /, then /main is automatically added to the end. Thus, racket or racket/main refers to the module whose source is the "main.rkt" file in the "racket" collection.

It could be that I'm just DoingItWrong™, since I'm not super familiar with Racket/Raco. I encountered this problem when using Nix to wrap a Racket interpreter with env vars that point to a pre-fetched, pre-compiled, immutable copy of rackcheck. The code I'm using (including raco commands, etc.) are here, although this same code has been working for other packages since 2016.

Here's the error log I'm getting:

.raco-wrapped: version: 8.9
.raco-wrapped: platform: aarch64-linux [cs]
.raco-wrapped: target machine: tarm64le
.raco-wrapped: installation name: 8.9
.raco-wrapped: variants: cs
.raco-wrapped: main collects: /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/
.raco-wrapped: collects paths: 
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/etc/.local/share/racket/8.9/collects
.raco-wrapped:   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/
.raco-wrapped: main pkgs: /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/pkgs
.raco-wrapped: pkgs paths: 
.raco-wrapped:   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/pkgs
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/etc/.local/share/racket/8.9/pkgs
.raco-wrapped: links files: 
.raco-wrapped:   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/links.rktd
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/etc/.local/share/racket/8.9/links.rktd
.raco-wrapped: compiled-file roots: 
.raco-wrapped:   same
.raco-wrapped:   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/lib/racket/compiled
.raco-wrapped: main docs: /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/doc/racket
.raco-wrapped: --- updating info-domain tables ---                    [21:17:04]
.raco-wrapped: updating: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/etc/.local/share/racket/8.9/share/info-cache.rktd
.raco-wrapped: --- pre-installing collections ---                     [21:17:04]
.raco-wrapped: --- installing foreign libraries ---                   [21:17:04]
.raco-wrapped: --- installing shared files ---                        [21:17:04]
.raco-wrapped: --- compiling collections ---                          [21:17:04]
.raco-wrapped: making: <collects>/racket
.raco-wrapped: --- parallel build using 4 jobs ---                    [21:17:04]
.raco-wrapped: 3 making: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/.github
.raco-wrapped: 3 making: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/.github/workflows
.raco-wrapped: 3 making: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped: 2 making: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck
.raco-wrapped: 1 making: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck-lib
/nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/coin.rkt:24:11: cannot open module file
  module path: rackcheck
  path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/coin.rkt
  location...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/coin.rkt:24:11
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:105:4
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:332:9
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:456:25
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:442:20: loop
/nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/distance.rkt:13:11: cannot open module file
  module path: rackcheck
  path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/distance.rkt
  location...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/distance.rkt:13:11
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:105:4
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:332:9
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:456:25
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:442:20: loop
/nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/json.rkt:5:11: cannot open module file
  module path: rackcheck
  path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/json.rkt
  location...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/json.rkt:5:11
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:105:4
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:332:9
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:456:25
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:442:20: loop
/nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/list.rkt:4:11: cannot open module file
  module path: rackcheck
  path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/list.rkt
  location...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/list.rkt:4:11
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:105:4
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:332:9
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:456:25
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:442:20: loop
/nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/ring.rkt:40:11: cannot open module file
  module path: rackcheck
  path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/ring.rkt
  location...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/ring.rkt:40:11
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:105:4
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:332:9
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:456:25
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:442:20: loop
/nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/web-api.rkt:93:11: cannot open module file
  module path: rackcheck
  path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/web-api.rkt
  location...:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/web-api.rkt:93:11
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/compiler/private/cm-minimal.rkt:105:4
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:332:9
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:456:25
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-do.rkt:442:20: loop
.raco-wrapped: 1 making: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck-lib/gen
.raco-wrapped: --- installing collections ---                         [21:17:37]
.raco-wrapped: installing: <collects>/racket
.raco-wrapped: installing: <pkgs>/gui-lib/mred
.raco-wrapped: installing: <pkgs>/gui-lib/racket/gui
.raco-wrapped: installing: <pkgs>/mzscheme-lib/mzscheme
.raco-wrapped: installing: <pkgs>/racket-doc/help
.raco-wrapped: --- post-installing collections ---                    [21:17:37]
.raco-wrapped: --- checking package dependencies ---                  [21:17:37]
.raco-wrapped: --- summary of errors ---                              [21:17:37]
.raco-wrapped: error: during making for /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/coin.rkt:24:11: cannot open module file
.raco-wrapped:     module path: rackcheck
.raco-wrapped:     path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
.raco-wrapped:     system error: no such file or directory; rkt_err=3
.raco-wrapped:     compiling: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/coin.rkt
.raco-wrapped: error: during making for /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/distance.rkt:13:11: cannot open module file
.raco-wrapped:     module path: rackcheck
.raco-wrapped:     path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
.raco-wrapped:     system error: no such file or directory; rkt_err=3
.raco-wrapped:     compiling: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/distance.rkt
.raco-wrapped: error: during making for /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/json.rkt:5:11: cannot open module file
.raco-wrapped:     module path: rackcheck
.raco-wrapped:     path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
.raco-wrapped:     system error: no such file or directory; rkt_err=3
.raco-wrapped:     compiling: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/json.rkt
STDERR:
standard-module-name-resolver: collection not found
  for module path: rackcheck/gen/unicode
  collection: "rackcheck/gen"
  in collection directories:
   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/etc/.local/share/racket/8.9/collects
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/
   ... [167 additional linked and package directories]
  context...:
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/syntax/private/modresolve-noctc.rkt:60:0: resolve-module-path
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/racket/contract/private/arrow-val-first.rkt:489:18
   /nix/store/9ds73ksn2qxgr6cag3047r643qnv68df-racket-8.9/share/racket/collects/setup/parallel-build.rkt:405:3
=====
.raco-wrapped: error: during making for /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/list.rkt:4:11: cannot open module file
.raco-wrapped:     module path: rackcheck
.raco-wrapped:     path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
.raco-wrapped:     system error: no such file or directory; rkt_err=3
.raco-wrapped:     compiling: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/list.rkt
.raco-wrapped: error: during making for /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/ring.rkt:40:11: cannot open module file
.raco-wrapped:     module path: rackcheck
.raco-wrapped:     path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
.raco-wrapped:     system error: no such file or directory; rkt_err=3
.raco-wrapped:     compiling: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/ring.rkt
.raco-wrapped: error: during making for /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples
.raco-wrapped:   /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/web-api.rkt:93:11: cannot open module file
.raco-wrapped:     module path: rackcheck
.raco-wrapped:     path: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/rackcheck/main.rkt
.raco-wrapped:     system error: no such file or directory; rkt_err=3
.raco-wrapped:     compiling: /nix/store/pvsn3v3h7k832zl89sbc3vd3yi3w4d3d-racket-8.9-with-deps/share/pkgs/pylcr4fhgwk4rckzjazivwsdnr8s97pn-source/examples/web-api.rkt
Bogdanp commented 10 months ago

I'm not too familiar with Nix, but it seems like you might be collecting the repo into one .../share/pkgs/<repo> folder and trying to link that folder directly. That's not going to work. Instead, you'll have to link each of the rackcheck* folders in the repo individually, without the -D flag. You also probably should be using raco pkg instead of raco link.

I.e. instead of

raco link -D <...>/share/pkgs/<repo>

you probably want

raco pkg install <...>/share/pkgs/<repo>/rackcheck{-lib,}/