Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sritchie/schema-repro
Recreation of a bug with Schema.
https://github.com/sritchie/schema-repro
Last synced: 24 days ago
JSON representation
Recreation of a bug with Schema.
- Host: GitHub
- URL: https://github.com/sritchie/schema-repro
- Owner: sritchie
- Created: 2014-03-26T02:38:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-26T02:49:30.000Z (over 10 years ago)
- Last Synced: 2024-05-02T00:35:30.678Z (6 months ago)
- Language: Clojure
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schema Error
This repo recreates some strange behavior I'm seeing with Prismatic's schema library & AOT compilation. I wrote a `clone-ns` macro so that I could slowly start migrating my clj-only code over to cljx files in a different root without breaking all of my current imports. Each `clj` model calls `clone-ns` on its `cljx` counterpart.
This works great in development mode at the repl, but fails when I try to deploy it into production. This project is a recreation of that issue.
## Usage
I'm seeing this error under AOT compilation. To recreate, run the following command in the project root:
```sh
lein uberjar && java -jar target/schema-standalone.jar 10
```The code DOES work if you clean, then run it with `lein run`:
```sh
lein do clean, run 10
```Note that if you run `lein run 10` directly after the `lein uberjar ` command, the code fails with the same error.