# Can't get .rkt file to publish with Pollen?

**URL:** <https://racket.discourse.group/t/cant-get-rkt-file-to-publish-with-pollen/4101>\
**Category:** Questions & Answers\
**Tags:** pollen\
**Created:** [February 4, 2026, 7:02pm UTC](https://racket.discourse.group/t/cant-get-rkt-file-to-publish-with-pollen/4101 "2026-02-04T19:02:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ToddOBryan](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/toddobryan/32/1962_2.png) [@ToddOBryan](https://racket.discourse.group/u/ToddOBryan)\
**Post date:** [February 4, 2026, 7:02pm UTC](https://racket.discourse.group/t/cant-get-rkt-file-to-publish-with-pollen/4101/1 "2026-02-04T19:02:00Z")

</div>

I'm doing my class website with Pollen, but I ran into a weird issue today. I needed to include a `.rkt` file for students to download, but couldn't get Pollen to include it with the `raco pollen publish` command. I suspect I'm just doing something silly.

I have `(require pollen/setup)` at the top of my file and I've re-defined `extra-path?` to include the file at `assignments/apcsp.rkt`, I think. But when I try to publish, that file doesn't show up in the published folder.

```racket
(module setup racket/base
    (provide extra-path?)
  
    (define (extra-path? p)
      (cond
        [(equal? p (string->path "assignments/apcsp.rkt")) #t]
        [else #f])))

```

Anybody see what I'm doing wrong?

Thanks,  
Todd

---

<div class="post-metadata">

**Author:** ![joeld](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/joeld/32/38_2.png) [@joeld](https://racket.discourse.group/u/joeld)\
**Post date:** [February 5, 2026, 6:45pm UTC](https://racket.discourse.group/t/cant-get-rkt-file-to-publish-with-pollen/4101/2 "2026-02-05T18:45:42Z")

</div>

By temoporarily adding `(displayln p)` at the start of your new `extra-path?` function, you'll see when you run `raco pollen publish` that the paths that get passed in are absolute paths, not relative.

So the issue is in your comparison. For example, if you change your test to `(string-contains? (path->string p) "assignments/apcsp.rkt")` it will work!

edit to add: you should not need to add `(require pollen/setup)` at the top of your `pollen.rkt` unless you're specifically referring to its bindings elsewhere in there.

---

<div class="post-metadata">

**Author:** ![ToddOBryan](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/toddobryan/32/1962_2.png) [@ToddOBryan](https://racket.discourse.group/u/ToddOBryan)\
**Post date:** [February 20, 2026, 12:23am UTC](https://racket.discourse.group/t/cant-get-rkt-file-to-publish-with-pollen/4101/3 "2026-02-20T00:23:09Z")

</div>

Thanks! I decided to add the current dir so that I could do an exact match, but the problem is, as you point out, that the paths are absolute rather than relative.
